diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-11-07 00:00:07 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-11-07 00:00:07 +0000 |
| commit | 855396924e7cdd0f507373b01313bc222fc5f695 (patch) | |
| tree | e03ca1d85b6dc4544e60a3636ae60afa6ce5b1fb /src/lib/content.cc | |
| parent | f41310384889e4cfb6e709d098b316e212d8bf22 (diff) | |
Don't emit video frame rate changes when they don't happen.
Diffstat (limited to 'src/lib/content.cc')
| -rw-r--r-- | src/lib/content.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |
