It's now safe to get _video_container_size without the lock.
authorCarl Hetherington <cth@carlh.net>
Sat, 10 Sep 2022 17:13:58 +0000 (19:13 +0200)
committerCarl Hetherington <cth@carlh.net>
Sat, 10 Sep 2022 21:21:06 +0000 (23:21 +0200)
src/lib/player.cc

index 13cd8f11badcb35102f33af52249d3abdbcdc79c..b3f11c8000a62c086fa686d84868f5822b0ef7d1 100644 (file)
@@ -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 {