Only mark _suspended as false at the appropriate times; previously v2.13.130
authorCarl Hetherington <cth@carlh.net>
Wed, 13 Mar 2019 12:53:23 +0000 (12:53 +0000)
committerCarl Hetherington <cth@carlh.net>
Wed, 13 Mar 2019 12:53:23 +0000 (12:53 +0000)
it was done too often, I think.

src/lib/player.cc

index caf165e..537a719 100644 (file)
@@ -231,7 +231,6 @@ Player::setup_pieces_unlocked ()
        _last_video_time = DCPTime ();
        _last_video_eyes = EYES_BOTH;
        _last_audio_time = DCPTime ();
-       _suspended = false;
 }
 
 void
@@ -247,6 +246,7 @@ Player::playlist_content_change (ChangeType type, int property, bool frequent)
        } else if (type == CHANGE_TYPE_DONE) {
                /* A change in our content has gone through.  Re-build our pieces. */
                setup_pieces ();
+               _suspended = false;
        } else if (type == CHANGE_TYPE_CANCELLED) {
                boost::mutex::scoped_lock lm (_mutex);
                _suspended = false;