Seek back to same place when something changes.
[dcpomatic.git] / src / lib / player.h
index cdedf1676eca8d46be8745e29a5aac332d4a8d33..b004540935ef81f967ec2508184722a4b7be3548 100644 (file)
@@ -56,13 +56,14 @@ public:
        void seek_back ();
        void seek_forward ();
 
+       /** @return position that we are at; ie the time of the next thing we will emit on pass() */
        Time position () const {
                return _position;
        }
 
 private:
 
-       void process_video (boost::weak_ptr<Content>, boost::shared_ptr<const Image>, bool, boost::shared_ptr<Subtitle>, Time);
+       void process_video (boost::weak_ptr<Content>, boost::shared_ptr<const Image>, bool, Time);
        void process_audio (boost::weak_ptr<Content>, boost::shared_ptr<const AudioBuffers>, Time);
        void setup_pieces ();
        void playlist_changed ();
@@ -70,6 +71,7 @@ private:
        void do_seek (Time, bool);
        void add_black_piece (Time, Time);
        void add_silent_piece (Time, Time);
+       void flush ();
 
        boost::shared_ptr<const Film> _film;
        boost::shared_ptr<const Playlist> _playlist;