[Bug 765292] gl:cocoa:Fix incompatible type warning

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Apr 20 08:25:45 UTC 2016


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

--- Comment #8 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
(In reply to Hyunjun Ko from comment #7)
> (In reply to Sebastian Dröge (slomo) from comment #6)
> 
> > I think this is wrong. We're checking here if that function exists. It will
> > be NULL if it does not exist because of using -weak_framework to link to
> > VideoToolbox. This is to make sure the plugin works against all versions of
> > VT but works better with newer versions.
> 
> I don't think this patch is not doing check if that function exists.
> It's just to silence this warning using address-of operator.

The problem is that &function is always going to give you something else than
NULL AFAIU.

See also
https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/WeakLinking.html
, it uses the same check for a function without the & operator.

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