]> git.sesse.net Git - ffmpeg/commitdiff
ffmpeg: check for unsupported "queing of command on first filter supporting the speci...
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 10 Sep 2013 12:13:44 +0000 (14:13 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 10 Sep 2013 12:13:44 +0000 (14:13 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg.c

index 78932c7783d4a792d624e22c7c3ae2c1ed36ea71..2e084a49a0bda6128712824d37cac2294b3686c1 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2698,6 +2698,9 @@ static int check_keyboard_interaction(int64_t cur_time)
                         ret = avfilter_graph_send_command(fg->graph, target, command, arg, buf, sizeof(buf),
                                                           key == 'c' ? AVFILTER_CMD_FLAG_ONE : 0);
                         fprintf(stderr, "Command reply for stream %d: ret:%d res:\n%s", i, ret, buf);
+                    } else if (key == 'c') {
+                        fprintf(stderr, "Queing commands only on filters supporting the specific command is unsupported\n");
+                        ret = AVERROR_PATCHWELCOME;
                     } else {
                         ret = avfilter_graph_queue_command(fg->graph, target, command, arg, 0, time);
                     }