mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue