diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-07-15 02:20:36 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-07-15 18:02:50 +0200 |
| commit | de77e42f106342e1668e8948e28d6974ef44b61c (patch) | |
| tree | e22c856264c78d9cc7ed62aa6d31dd4fd516ebe1 /src/lib/film.cc | |
| parent | 847daf7ec0f741eb6d50638c2096743ee731634c (diff) | |
Don't process unnecessary video frame rate changes.
This inadvertently fixes a bug where multiple pieces of caption content
would be added to the project sequentially, but then immediately
re-arranged to be at the same time.
Diffstat (limited to 'src/lib/film.cc')
| -rw-r--r-- | src/lib/film.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc index 9dcc21918..ddb469f3a 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -1212,6 +1212,10 @@ Film::set_video_bit_rate(VideoEncoding encoding, int64_t bit_rate) void Film::set_video_frame_rate(int f, bool user_explicit) { + if (_video_frame_rate == f) { + return; + } + FilmChangeSignaller ch(this, FilmProperty::VIDEO_FRAME_RATE); _video_frame_rate = f; if (user_explicit) { |
