From 72f6f3de6a098cc74394e047aaa3fa5f9f44aa83 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 11 May 2025 21:05:56 +0200 Subject: Use case for property checks now that it's possible. This would have prevented the bug fixed in 6bbf7dee. --- src/lib/film.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/lib') diff --git a/src/lib/film.cc b/src/lib/film.cc index c969ff699..f26dcaed0 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -1571,10 +1571,13 @@ Film::active_frame_rate_change(DCPTime t) const void Film::playlist_content_change(ChangeType type, weak_ptr c, int p, bool frequent) { - if (p == ContentProperty::VIDEO_FRAME_RATE) { + switch (p) { + case ContentProperty::VIDEO_FRAME_RATE: signal_change(type, FilmProperty::CONTENT); - } else if (p == AudioContentProperty::STREAMS) { + break; + case AudioContentProperty::STREAMS: signal_change(type, FilmProperty::NAME); + break; } if (type == ChangeType::DONE) { -- cgit v1.2.3