Fix implementation of delay in 7758260; it needs to apply to
[dcpomatic.git] / src / lib / shuffler.cc
index 4b8474ab3028eeb5b99e091aba9d426e15302c8b..0ec4daf5ad654bab9a1c8ef17f17eddfca96bb49 100644 (file)
@@ -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);
+       }
+}