avfvideosrc: fix build failure with clang

Use fabs for floating point input.

https://bugzilla.gnome.org/show_bug.cgi?id=748128
This commit is contained in:
Yujin Lee 2015-04-19 13:12:05 +09:00 committed by Tim-Philipp Müller
parent b4219a3e63
commit 4a88951c52

View file

@ -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;