From 855396924e7cdd0f507373b01313bc222fc5f695 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 7 Nov 2018 00:00:07 +0000 Subject: [PATCH] Don't emit video frame rate changes when they don't happen. --- src/lib/content.cc | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.30.2