GNOME Bugzilla – Bug 767816
Comparison of constant 64 with expression of type 'GstVideoFormat' is always false in Mac OS X
Last modified: 2016-07-11 21:14:53 UTC
Created attachment 329997 [details] Error in "homebrew machine" The error occurs when compiling in Mac OS X. I tested it in two machines, one using macports and the other homebrew for installing dependencies.
Created attachment 329998 [details] Error in "macports machine"
To make gst-plugins-base, the ERROR_CFLAGS='' is needed. The code compiles fine in Linux.
Do you want to provide a patch? The solution here would be to first cast "format" to a gint. Can you confirm? The compiler warning is wrong though, but let's work around it.
I think the warning is right, it's just that we do these checks on purpose (e.g. to catch usage of something that has been compiled against newer headers with more formats against an older lib, or bogus values).
There's nothing "wrong" from the C point of view to pass a random integer instead of one of the actual enum values
commit 02a88077fcef7444d0cc7382b6274a3a4bd598d9 Author: Sebastian Dröge <sebastian@centricular.com> Date: Tue Jul 12 00:13:32 2016 +0300 video: Fix some compiler warnings for out-of-range enum values https://bugzilla.gnome.org/show_bug.cgi?id=767816