diff options
Diffstat (limited to 'libavfilter/avfiltergraph.c')
-rw-r--r-- | libavfilter/avfiltergraph.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c index 10f9b7e7d6..c05bbb7fe6 100644 --- a/libavfilter/avfiltergraph.c +++ b/libavfilter/avfiltergraph.c @@ -1001,16 +1001,16 @@ int avfilter_graph_queue_command(AVFilterGraph *graph, const char *target, const for (i = 0; i < graph->filter_count; i++) { AVFilterContext *filter = graph->filters[i]; if(filter && (!strcmp(target, "all") || !strcmp(target, filter->name) || !strcmp(target, filter->filter->name))){ - AVFilterCommand **que = &filter->command_queue, *next; - while(*que && (*que)->time <= ts) - que = &(*que)->next; - next= *que; - *que= av_mallocz(sizeof(AVFilterCommand)); - (*que)->command = av_strdup(command); - (*que)->arg = av_strdup(arg); - (*que)->time = ts; - (*que)->flags = flags; - (*que)->next = next; + AVFilterCommand **queue = &filter->command_queue, *next; + while (*queue && (*queue)->time <= ts) + queue = &(*queue)->next; + next = *queue; + *queue = av_mallocz(sizeof(AVFilterCommand)); + (*queue)->command = av_strdup(command); + (*queue)->arg = av_strdup(arg); + (*queue)->time = ts; + (*queue)->flags = flags; + (*queue)->next = next; if(flags & AVFILTER_CMD_FLAG_ONE) return 0; } |