diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-02-23 00:57:04 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-02-23 00:58:08 +0000 |
| commit | 24ba224ab4871e453df50fde94b5b32649a3d47b (patch) | |
| tree | 2c90d0f0dc1ce819f8599722e743e0017e98fd7b /src/lib/shuffler.cc | |
| parent | 1d4c7f065389981ba145b89a0a224cb986d8eb5b (diff) | |
Fix implementation of delay in 7758260; it needs to apply to
anything passed to emit_video(), not just things that come from
decoders.
Diffstat (limited to 'src/lib/shuffler.cc')
| -rw-r--r-- | src/lib/shuffler.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/shuffler.cc b/src/lib/shuffler.cc index 4b8474ab3..0ec4daf5a 100644 --- a/src/lib/shuffler.cc +++ b/src/lib/shuffler.cc @@ -78,6 +78,14 @@ Shuffler::video (weak_ptr<Piece> weak_piece, ContentVideo video) void Shuffler::clear () { - VideoAdjuster::clear (); + _store.clear (); _last = optional<ContentVideo>(); } + +void +Shuffler::flush () +{ + BOOST_FOREACH (Store i, _store) { + Video (i.first, i.second); + } +} |
