summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-06-05 14:00:14 +0100
committerCarl Hetherington <cth@carlh.net>2014-06-05 14:00:14 +0100
commitd755a06a076f10d1f44bd66fd7b0ea0e0b02a1c0 (patch)
tree3a6cd6ca80de5abe9e8bc10e653e43264c67f3ad /src/lib/ffmpeg_decoder.cc
parent70bc37e2e8958c5f8959be0ac76536e8697d6d63 (diff)
Fix erroneous video position after seek.
Diffstat (limited to 'src/lib/ffmpeg_decoder.cc')
-rw-r--r--src/lib/ffmpeg_decoder.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc
index 5fe34ce14..04dd7fd2d 100644
--- a/src/lib/ffmpeg_decoder.cc
+++ b/src/lib/ffmpeg_decoder.cc
@@ -386,6 +386,11 @@ FFmpegDecoder::seek (VideoContent::Frame frame, bool accurate)
av_free_packet (&_packet);
}
+
+ /* _video_position should be the next thing to be emitted, which will the one after the thing
+ we just saw.
+ */
+ _video_position++;
}
void