ffmpeg: Print an error if avfilter_graph_queue_command() failed
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 15 May 2015 10:41:28 +0000 (12:41 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 15 May 2015 10:41:28 +0000 (12:41 +0200)
Fixes CID1271809

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

index fde2bcf..877e914 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3337,6 +3337,8 @@ static int check_keyboard_interaction(int64_t cur_time)
                         ret = AVERROR_PATCHWELCOME;
                     } else {
                         ret = avfilter_graph_queue_command(fg->graph, target, command, arg, 0, time);
+                        if (ret < 0)
+                            fprintf(stderr, "Queing command failed with error %s\n", av_err2str(ret));
                     }
                 }
             }