Add a 2-frame `delay' on content arriving at the player to give
authorCarl Hetherington <cth@carlh.net>
Tue, 20 Feb 2018 23:34:59 +0000 (23:34 +0000)
committerCarl Hetherington <cth@carlh.net>
Tue, 20 Feb 2018 23:34:59 +0000 (23:34 +0000)
commit775826079275839005d2168b190f96e32215afd0
tree8297950852fb970e1e77931f3cc4f8789220e2aa
parent66f15e8fc998061c78675e499fa88ab1e17e318d
Add a 2-frame `delay' on content arriving at the player to give
subtitle content the chance to catch up.  Fixes problems observed
when overlaying a DCP subtitle onto an existing DCP and then seeking
into the first subtitle.  After the seek the decoder positions were:

DCP: 0.
subtitle: first subtitle time.

This causes the DCP decoder to be pass()ed first and so the subtitle
for the video frame has not arrived yet.

I hope this does not cause unpredicted side effects...
src/lib/content_video.h
src/lib/delay.cc [new file with mode: 0644]
src/lib/delay.h [new file with mode: 0644]
src/lib/player.cc
src/lib/player.h
src/lib/shuffler.cc
src/lib/shuffler.h
src/lib/video_adjuster.cc [new file with mode: 0644]
src/lib/video_adjuster.h [new file with mode: 0644]
src/lib/wscript