Barely-functioning GL playback with new arrangement.
[dcpomatic.git] / src / lib / shuffler.h
index 54e13d486fefeb3bf3390f497bc94c7b839cbba1..80754a5e0b2854f7058e29aa8e7cf02bf5de3252 100644 (file)
@@ -22,6 +22,8 @@
 #include "content_video.h"
 #include <boost/signals2.hpp>
 
+struct shuffler_test5;
+
 class Piece;
 
 class Shuffler
@@ -29,14 +31,16 @@ class Shuffler
 public:
        void clear ();
        void flush ();
-
        void video (boost::weak_ptr<Piece>, ContentVideo video);
+
        boost::signals2::signal<void (boost::weak_ptr<Piece>, ContentVideo)> Video;
 
        typedef std::pair<boost::weak_ptr<Piece>, ContentVideo> Store;
 
 private:
+       friend struct ::shuffler_test5;
 
-       boost::optional<ContentVideo> _last;
        std::list<Store> _store;
+       boost::optional<ContentVideo> _last;
+       static int const _max_size;
 };