aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/ffmpeg_plugin.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/decoder/ffmpeg_plugin.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/decoder/ffmpeg_plugin.c b/src/decoder/ffmpeg_plugin.c
index 7bb29fedc..7c8f81a7a 100644
--- a/src/decoder/ffmpeg_plugin.c
+++ b/src/decoder/ffmpeg_plugin.c
@@ -249,11 +249,10 @@ ffmpeg_decode_internal(BasePtrs *base)
if (decoder_get_command(decoder) == DECODE_COMMAND_SEEK) {
current = decoder_seek_where(decoder) * AV_TIME_BASE;
- if (av_seek_frame(pFormatCtx, -1, current , 0) < 0) {
- WARNING("seek to %d failed\n", current);
- }
-
- decoder_command_finished(decoder);
+ if (av_seek_frame(pFormatCtx, -1, current, 0) < 0)
+ decoder_seek_error(decoder);
+ else
+ decoder_command_finished(decoder);
}
if (av_read_frame(pFormatCtx, &packet) >= 0) {