From: Carl Hetherington Date: Wed, 7 Nov 2018 00:00:07 +0000 (+0000) Subject: Don't emit video frame rate changes when they don't happen. X-Git-Tag: v2.13.67~4 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=855396924e7cdd0f507373b01313bc222fc5f695 Don't emit video frame rate changes when they don't happen. --- diff --git a/src/lib/content.cc b/src/lib/content.cc index 3ab4a5959..6f5d23fd5 100644 --- a/src/lib/content.cc +++ b/src/lib/content.cc @@ -400,6 +400,9 @@ Content::set_video_frame_rate (double r) { boost::mutex::scoped_lock lm (_mutex); + if (_video_frame_rate && fabs(r - *_video_frame_rate) < VIDEO_FRAME_RATE_EPSILON) { + cc.abort(); + } _video_frame_rate = r; }