From 6e168c52f2165c026c149581e2dfe3b2cd5c5298 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 10 Sep 2022 19:13:58 +0200 Subject: [PATCH] It's now safe to get _video_container_size without the lock. --- src/lib/player.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/player.cc b/src/lib/player.cc index 13cd8f11b..b3f11c800 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -307,10 +307,9 @@ Player::playlist_content_change (ChangeType type, int property, bool frequent) { if (property == VideoContentProperty::CROP) { if (type == ChangeType::DONE) { - auto const vcs = video_container_size(); boost::mutex::scoped_lock lm (_mutex); for (auto const& i: _delay) { - i.first->reset_metadata (_film, vcs); + i.first->reset_metadata(_film, _video_container_size); } } } else { -- 2.30.2