X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fplayer.h;h=f7ab1000d37f7392fed01187cdd6b776b414a4f1;hb=9a27d60ea7888d300a5a2414a477091428589b82;hp=c43cfd40e1eca4d0dc0b154c8aeb71089475c8bc;hpb=0bd80b641875632b9b2b17530d00e4546bba8088;p=dcpomatic.git diff --git a/src/lib/player.h b/src/lib/player.h index c43cfd40e..f7ab1000d 100644 --- a/src/lib/player.h +++ b/src/lib/player.h @@ -88,16 +88,21 @@ public: boost::optional content_time_to_dcp (boost::shared_ptr content, ContentTime t); + /* The player's internal state may be about to change such so + that its emissions from Video and Audio will suddenly be + from an undefined position. Listeners should prepare + themselves for this possibility. + */ boost::signals2::signal MayChange; - /** 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. + /** The player's internal state has now changed. * * The first parameter is what changed. * The second parameter is true if these signals are currently likely to be frequent. */ boost::signals2::signal Changed; + + /** The change suggested by a MayChange did not happen */ boost::signals2::signal NotChanged; /** Emitted when a video frame is ready. These emissions happen in the correct order. */ @@ -156,8 +161,8 @@ private: boost::shared_ptr _film; boost::shared_ptr _playlist; - /** We can pass() and seek() */ - bool _can_run; + /** true if we are suspended (i.e. pass() and seek() do nothing */ + bool _suspended; std::list > _pieces; /** Size of the image in the DCP (e.g. 1990x1080 for flat) */