From 5c712268c87dd318a6f5357b0d8f7b8a8b7764bb Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 13 Mar 2019 12:53:23 +0000 Subject: Only mark _suspended as false at the appropriate times; previously it was done too often, I think. --- src/lib/player.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/player.cc b/src/lib/player.cc index caf165e11..537a71906 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -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; -- cgit v1.2.3