Browse code

ffmpeg: Print an error if avfilter_graph_queue_command() failed

Fixes CID1271809

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

Michael Niedermayer authored on 2015/05/15 19:41:28
Showing 1 changed files
... ...
@@ -3337,6 +3337,8 @@ static int check_keyboard_interaction(int64_t cur_time)
3337 3337
                         ret = AVERROR_PATCHWELCOME;
3338 3338
                     } else {
3339 3339
                         ret = avfilter_graph_queue_command(fg->graph, target, command, arg, 0, time);
3340
+                        if (ret < 0)
3341
+                            fprintf(stderr, "Queing command failed with error %s\n", av_err2str(ret));
3340 3342
                     }
3341 3343
                 }
3342 3344
             }