projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4219a3
)
avfvideosrc: fix build failure with clang
author
Yujin Lee
<saddopop@gmail.com>
Sun, 19 Apr 2015 04:12:05 +0000
(13:12 +0900)
committer
Tim-Philipp Müller
<tim@centricular.com>
Sun, 19 Apr 2015 11:54:32 +0000
(12:54 +0100)
Use fabs for floating point input.
https://bugzilla.gnome.org/show_bug.cgi?id=748128
sys/applemedia/avfvideosrc.m
patch
|
blob
|
history
diff --git
a/sys/applemedia/avfvideosrc.m
b/sys/applemedia/avfvideosrc.m
index
9d9853a
..
7141991
100644
(file)
--- a/
sys/applemedia/avfvideosrc.m
+++ b/
sys/applemedia/avfvideosrc.m
@@
-464,7
+464,7
@@
didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
gdouble max_frame_rate;
[[rate valueForKey:@"maxFrameRate"] getValue:&max_frame_rate];
- if (abs (framerate - max_frame_rate) < 0.00001) {
+ if (
f
abs (framerate - max_frame_rate) < 0.00001) {
NSValue *min_frame_duration, *max_frame_duration;
found_framerate = TRUE;