summaryrefslogtreecommitdiff
path: root/src/lib/shuffler.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-02-23 00:57:04 +0000
committerCarl Hetherington <cth@carlh.net>2018-02-23 00:57:04 +0000
commitc8d104aa221bdccb0a11524c038b5f4c7c070554 (patch)
tree9b4a62e03df9dc8ccf0ac381d6b8eb141e8d63c3 /src/lib/shuffler.cc
parent5a03c6b8e5d088126378b2dd3aef93fbc0216d06 (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.cc10
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);
+ }
+}