projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f413103
)
Don't emit video frame rate changes when they don't happen.
author
Carl Hetherington
<cth@carlh.net>
Wed, 7 Nov 2018 00:00:07 +0000
(
00:00
+0000)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 7 Nov 2018 00:00:07 +0000
(
00:00
+0000)
src/lib/content.cc
patch
|
blob
|
history
diff --git
a/src/lib/content.cc
b/src/lib/content.cc
index 3ab4a5959a81cbb8ecdc42eca672b822add569c7..6f5d23fd5ab04be2007c9b9e3b298d4b9c809f5f 100644
(file)
--- 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;
}