gst/: Add !! to _FLAG_IS_SET macros to make the result boolean.

Original commit message from CVS:
* gst/gstminiobject.h:
* gst/gstobject.h:
Add !! to _FLAG_IS_SET macros to make the result boolean.
This commit is contained in:
Tim-Philipp Müller 2005-11-03 13:52:59 +00:00
parent 7c1da7fee0
commit 22993965c7
3 changed files with 8 additions and 2 deletions

View file

@ -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):

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

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