diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-05-11 21:05:56 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-05-11 21:05:56 +0200 |
| commit | 72f6f3de6a098cc74394e047aaa3fa5f9f44aa83 (patch) | |
| tree | 0f83898e07b18f18694a09e2209e8418454bab19 /src/lib/film.cc | |
| parent | a98f6e4f84d02b87ba05cecfcc3005858f274afa (diff) | |
Use case for property checks now that it's possible.
This would have prevented the bug fixed in 6bbf7dee.
Diffstat (limited to 'src/lib/film.cc')
| -rw-r--r-- | src/lib/film.cc | 7 |
1 files changed, 5 insertions, 2 deletions
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<Content> 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) { |
