diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-06-05 14:00:14 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-06-05 14:00:14 +0100 |
| commit | d755a06a076f10d1f44bd66fd7b0ea0e0b02a1c0 (patch) | |
| tree | 3a6cd6ca80de5abe9e8bc10e653e43264c67f3ad /src/lib/ffmpeg_decoder.cc | |
| parent | 70bc37e2e8958c5f8959be0ac76536e8697d6d63 (diff) | |
Fix erroneous video position after seek.
Diffstat (limited to 'src/lib/ffmpeg_decoder.cc')
| -rw-r--r-- | src/lib/ffmpeg_decoder.cc | 5 |
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 |
