Browse code

libavfilter/graphparser: Avoid spaces in filter instance names. This makes it easier to refer to filters where things are seperated by spaces.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2011/08/31 05:02:38
Showing 1 changed files
... ...
@@ -99,7 +99,7 @@ static int create_filter(AVFilterContext **filt_ctx, AVFilterGraph *ctx, int ind
99 99
     char tmp_args[256];
100 100
     int ret;
101 101
 
102
-    snprintf(inst_name, sizeof(inst_name), "Parsed filter %d %s", index, filt_name);
102
+    snprintf(inst_name, sizeof(inst_name), "Parsed_%s_%d", filt_name, index);
103 103
 
104 104
     filt = avfilter_get_by_name(filt_name);
105 105