From 22993965c751b6bfa18d3833d359b79d4c599342 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 3 Nov 2005 13:52:59 +0000 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ gst/gstminiobject.h | 2 +- gst/gstobject.h | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 69f8211..a7f8f42 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-11-03 Tim-Philipp Müller + + * gst/gstminiobject.h: + * gst/gstobject.h: + Add !! to _FLAG_IS_SET macros to make the result boolean. + 2005-11-03 Edward Hervey * gst/gstpad.c: (gst_pad_set_blocked_async): diff --git a/gst/gstminiobject.h b/gst/gstminiobject.h index b72a715..65e31ae 100644 --- a/gst/gstminiobject.h +++ b/gst/gstminiobject.h @@ -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. diff --git a/gst/gstobject.h b/gst/gstobject.h index dcced64..bb12839 100644 --- a/gst/gstobject.h +++ b/gst/gstobject.h @@ -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. -- 2.7.4