Player::Player (shared_ptr<const Film> film, shared_ptr<const Playlist> playlist)
: _film (film)
, _playlist (playlist)
- , _can_run (false)
+ , _suspended (false)
, _ignore_video (false)
, _ignore_audio (false)
, _ignore_text (false)
_last_video_time = DCPTime ();
_last_video_eyes = EYES_BOTH;
_last_audio_time = DCPTime ();
- _can_run = true;
+ _suspended = false;
}
void
until that has happened and we've rebuilt our pieces. Stop pass()
and seek() from working until then.
*/
- _can_run = false;
+ _suspended = true;
}
MayChange ();
Player::playlist_content_not_changed ()
{
/* A possible content change did end up happening for some reason */
- setup_pieces ();
NotChanged ();
}
{
boost::mutex::scoped_lock lm (_mutex);
- if (!_can_run) {
+ if (_suspended) {
/* We can't pass in this state */
return false;
}
{
boost::mutex::scoped_lock lm (_mutex);
- if (!_can_run) {
+ if (_suspended) {
/* We can't seek in this state */
return;
}