gst/: Add !! to _FLAG_IS_SET macros to make the result boolean.
authorTim-Philipp Müller <tim@centricular.net>
Thu, 3 Nov 2005 13:52:59 +0000 (13:52 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Thu, 3 Nov 2005 13:52:59 +0000 (13:52 +0000)
Original commit message from CVS:
* gst/gstminiobject.h:
* gst/gstobject.h:
Add !! to _FLAG_IS_SET macros to make the result boolean.

ChangeLog
gst/gstminiobject.h
gst/gstobject.h

index 69f8211..a7f8f42 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-11-03  Tim-Philipp Müller  <tim at centricular dot net>
+
+       * gst/gstminiobject.h:
+       * gst/gstobject.h:
+         Add !! to _FLAG_IS_SET macros to make the result boolean.
+
 2005-11-03  Edward Hervey  <edward@fluendo.com>
 
        * gst/gstpad.c: (gst_pad_set_blocked_async):
index b72a715..65e31ae 100644 (file)
@@ -72,7 +72,7 @@ typedef void (*GstMiniObjectFinalizeFunction) (GstMiniObject *obj);
  *
  * This macro checks to see if the given flag is set.
  */
-#define GST_MINI_OBJECT_FLAG_IS_SET(obj,flag)        (GST_MINI_OBJECT_FLAGS (obj) & (flag))
+#define GST_MINI_OBJECT_FLAG_IS_SET(obj,flag)        !!(GST_MINI_OBJECT_FLAGS (obj) & (flag))
 /**
  * GST_MINI_OBJECT_FLAG_SET:
  * @obj: MiniObject to set flag in.
index dcced64..bb12839 100644 (file)
@@ -147,7 +147,7 @@ typedef enum
  *
  * This macro checks to see if the given flag is set.
  */
-#define GST_OBJECT_FLAG_IS_SET(obj,flag)       (GST_OBJECT_FLAGS (obj) & (flag))
+#define GST_OBJECT_FLAG_IS_SET(obj,flag)       !!(GST_OBJECT_FLAGS (obj) & (flag))
 /**
  * GST_OBJECT_FLAG_SET:
  * @obj: Object to set flag in.