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:
parent
b4219a3e63
commit
4a88951c52
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user