No-op: remove all trailing whitespace.
[dcpomatic.git] / src / lib / player.h
index 52dffec24656a1edadcefab42756ea73bb6844d2..f22faa7ac28bf9d3f84fb829d61be72ee3dbb41d 100644 (file)
@@ -20,7 +20,6 @@
 #ifndef DCPOMATIC_PLAYER_H
 #define DCPOMATIC_PLAYER_H
 
-#include "playlist.h"
 #include "content.h"
 #include "film.h"
 #include "rect.h"
@@ -37,7 +36,6 @@
 
 class Job;
 class Film;
-class Playlist;
 class AudioContent;
 class Piece;
 class Image;
@@ -45,7 +43,8 @@ class Decoder;
 class Resampler;
 class PlayerVideo;
 class ImageProxy;
+class Font;
+
 class PlayerStatistics
 {
 public:
@@ -56,7 +55,7 @@ public:
                        , good (0)
                        , skip (0)
                {}
-               
+
                int black;
                int repeat;
                int good;
@@ -69,7 +68,7 @@ public:
                        , good (0)
                        , skip (0)
                {}
-               
+
                DCPTime silence;
                int64_t good;
                int64_t skip;
@@ -79,12 +78,12 @@ public:
 };
 
 /** @class Player
- *  @brief A class which can `play' a Playlist.
+ *  @brief A class which can `play' a Film.
  */
 class Player : public boost::enable_shared_from_this<Player>, public boost::noncopyable
 {
 public:
-       Player (boost::shared_ptr<const Film>, boost::shared_ptr<const Playlist>);
+       Player (boost::shared_ptr<const Film>);
 
        std::list<boost::shared_ptr<PlayerVideo> > get_video (DCPTime time, bool accurate);
        boost::shared_ptr<AudioBuffers> get_audio (DCPTime time, DCPTime length, bool accurate);
@@ -97,7 +96,7 @@ public:
        void set_burn_subtitles (bool burn);
 
        PlayerStatistics const & statistics () const;
-       
+
        /** Emitted when something has changed such that if we went back and emitted
         *  the last frame again it would look different.  This is not emitted after
         *  a seek.
@@ -112,7 +111,6 @@ private:
        friend struct player_overlaps_test;
 
        void setup_pieces ();
-       void playlist_changed ();
        void content_changed (boost::weak_ptr<Content>, int, bool);
        void flush ();
        void film_changed (Film::Property);
@@ -143,12 +141,11 @@ private:
                                overlaps.push_back (*i);
                        }
                }
-               
+
                return overlaps;
        }
-       
+
        boost::shared_ptr<const Film> _film;
-       boost::shared_ptr<const Playlist> _playlist;
 
        /** Our pieces are ready to go; if this is false the pieces must be (re-)created before they are used */
        bool _have_valid_pieces;
@@ -167,8 +164,7 @@ private:
 
        PlayerStatistics _statistics;
 
-       boost::signals2::scoped_connection _playlist_changed_connection;
-       boost::signals2::scoped_connection _playlist_content_changed_connection;
+       boost::signals2::scoped_connection _film_content_changed_connection;
        boost::signals2::scoped_connection _film_changed_connection;
 };