From: Yujin Lee Date: Sun, 19 Apr 2015 04:12:05 +0000 (+0900) Subject: avfvideosrc: fix build failure with clang X-Git-Tag: 1.19.3~507^2~8964 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4a88951c52c96744cae62918b4989c90761b98bd;p=platform%2Fupstream%2Fgstreamer.git avfvideosrc: fix build failure with clang Use fabs for floating point input. https://bugzilla.gnome.org/show_bug.cgi?id=748128 --- 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;