summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2014-06-22 12:50:42 +0100
committerTim-Philipp Müller <tim@centricular.com>2014-06-22 12:50:42 +0100
commit8e30a9462cf1a470f620490f90a9f51cf976655c (patch)
treeeaa7eac40fcc628cb411d544b3df4248c8c187fc
parent2092754ed1554ed255cfde8df602a4255f14c007 (diff)
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
-rw-r--r--gst/gstcaps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/gstcaps.c b/gst/gstcaps.c
index ea0718cbb..4525ead1f 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) \