diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-02-20 23:34:59 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-02-20 23:34:59 +0000 |
| commit | 775826079275839005d2168b190f96e32215afd0 (patch) | |
| tree | 8297950852fb970e1e77931f3cc4f8789220e2aa /src/lib/shuffler.cc | |
| parent | 66f15e8fc998061c78675e499fa88ab1e17e318d (diff) | |
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...
Diffstat (limited to 'src/lib/shuffler.cc')
| -rw-r--r-- | src/lib/shuffler.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/lib/shuffler.cc b/src/lib/shuffler.cc index 84bf98ed2..4b8474ab3 100644 --- a/src/lib/shuffler.cc +++ b/src/lib/shuffler.cc @@ -78,13 +78,6 @@ Shuffler::video (weak_ptr<Piece> weak_piece, ContentVideo video) void Shuffler::clear () { + VideoAdjuster::clear (); _last = optional<ContentVideo>(); } - -void -Shuffler::flush () -{ - BOOST_FOREACH (Store i, _store) { - Video (i.first, i.second); - } -} |
