From 4a88951c52c96744cae62918b4989c90761b98bd Mon Sep 17 00:00:00 2001 From: Yujin Lee Date: Sun, 19 Apr 2015 13:12:05 +0900 Subject: [PATCH] avfvideosrc: fix build failure with clang Use fabs for floating point input. https://bugzilla.gnome.org/show_bug.cgi?id=748128 --- sys/applemedia/avfvideosrc.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/applemedia/avfvideosrc.m b/sys/applemedia/avfvideosrc.m index 9d9853a..7141991 100644 --- 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 (fabs (framerate - max_frame_rate) < 0.00001) { NSValue *min_frame_duration, *max_frame_duration; found_framerate = TRUE; -- 2.7.4