From de77e42f106342e1668e8948e28d6974ef44b61c Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 15 Jul 2025 02:20:36 +0200 Subject: 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. --- src/lib/film.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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) { -- cgit v1.2.3