[Bug 748128] New: avfvideosrc: fix build failure with clang

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Sat Apr 18 21:08:46 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=748128

            Bug ID: 748128
           Summary: avfvideosrc: fix build failure with clang
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Mac OS
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-bad
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: saddopop at gmail.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

There is a build error when avfvideosrc is compiled with clang.

...
Making all in sys
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C applemedia
  OBJC     libgstapplemedia_la-plugin.lo
  OBJC     libgstapplemedia_la-avfvideosrc.lo
avfvideosrc.m:467:15: error: using integer absolute value function 'abs' when
argument is of floating point type [-Werror,-Wabsolute-value]
          if (abs (framerate - max_frame_rate) < 0.00001) {
              ^
avfvideosrc.m:467:15: note: use function 'fabs' instead
          if (abs (framerate - max_frame_rate) < 0.00001) {
              ^~~
              fabs
1 error generated.
make[3]: *** [libgstapplemedia_la-avfvideosrc.lo] Error 1
make[2]: *** [applemedia] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list