ffmpeg: Print an error if avfilter_graph_queue_command() failed

Fixes CID1271809

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2015-05-15 12:41:28 +02:00
parent da2f156843
commit 670702f91d
1 changed files with 2 additions and 0 deletions

View File

@ -3337,6 +3337,8 @@ static int check_keyboard_interaction(int64_t cur_time)
ret = AVERROR_PATCHWELCOME; ret = AVERROR_PATCHWELCOME;
} else { } else {
ret = avfilter_graph_queue_command(fg->graph, target, command, arg, 0, time); 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));
} }
} }
} }