From: Tim-Philipp Müller Date: Sun, 22 Jun 2014 11:50:42 +0000 (+0100) Subject: caps: gst_caps_is_any() should return TRUE or FALSE X-Git-Tag: 1.3.3~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8e30a9462cf1a470f620490f90a9f51cf976655c;p=platform%2Fupstream%2Fgstreamer.git caps: gst_caps_is_any() should return TRUE or FALSE Not some flag value instead of TRUE. Fixes code like gst_caps_is_any() == TRUE. https://bugzilla.gnome.org//show_bug.cgi?id=731704 --- diff --git a/gst/gstcaps.c b/gst/gstcaps.c index ea0718c..4525ead 100644 --- a/gst/gstcaps.c +++ b/gst/gstcaps.c @@ -92,7 +92,7 @@ typedef struct _GstCapsImpl /* same as gst_caps_is_any () */ #define CAPS_IS_ANY(caps) \ - (GST_CAPS_FLAGS(caps) & GST_CAPS_FLAG_ANY) + (!!(GST_CAPS_FLAGS(caps) & GST_CAPS_FLAG_ANY)) /* same as gst_caps_is_empty () */ #define CAPS_IS_EMPTY(caps) \