Stop video filters emitting frames from the old position just
authorCarl Hetherington <cth@carlh.net>
Sun, 5 May 2019 22:23:40 +0000 (22:23 +0000)
committerCarl Hetherington <cth@carlh.net>
Sun, 5 May 2019 22:23:40 +0000 (22:23 +0000)
commit72253f423319c8ff727acf3324617c206b984ae1
tree2247d82e938faf56c557acf1c1ca4445bbbc9caf
parent870ab8d9295b9d4b6605e8876919d23379dc3a35
Stop video filters emitting frames from the old position just
after a seek.

If this happens, we get sequences like

1. emit some video at time 60s
2. seek to 40s
3. video frame emitted from filter at 60.1s; this sets _last_video_time
in player so that frames emitted between 40s and 60s are discarded;
hence the audio buffers overflow.

Should fix #1551.
src/lib/ffmpeg_decoder.cc