diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-09-10 19:13:58 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-09-10 23:21:06 +0200 |
| commit | 6e168c52f2165c026c149581e2dfe3b2cd5c5298 (patch) | |
| tree | 5d17f39ced31eb408d19304be597d66852347ab5 | |
| parent | c8bd4ead4c9e757d88136a7fdd556272f36be793 (diff) | |
It's now safe to get _video_container_size without the lock.
| -rw-r--r-- | src/lib/player.cc | 3 |
1 files changed, 1 insertions, 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 { |
