From 7c1da7fee0b7542b79d01ed15347db7bec944e6b Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Thu, 3 Nov 2005 12:48:30 +0000 Subject: [PATCH] gst/gstpad.c: comparing a flag and a gboolean rarely returns coherent results... Original commit message from CVS: * gst/gstpad.c: (gst_pad_set_blocked_async): comparing a flag and a gboolean rarely returns coherent results... Added two characters (!!) to make that work correctly. --- ChangeLog | 6 ++++++ gst/gstpad.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 63c52f43bf..69f8211262 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-11-03 Edward Hervey + + * gst/gstpad.c: (gst_pad_set_blocked_async): + comparing a flag and a gboolean rarely returns coherent results... + Added two characters (!!) to make that work correctly. + 2005-11-03 Tim-Philipp Müller * gst/gstbus.c: (gst_bus_class_init): diff --git a/gst/gstpad.c b/gst/gstpad.c index ef3cffdbec..6c567f2c08 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -854,7 +854,7 @@ gst_pad_set_blocked_async (GstPad * pad, gboolean blocked, GST_LOCK (pad); - was_blocked = GST_PAD_IS_BLOCKED (pad); + was_blocked = !!GST_PAD_IS_BLOCKED (pad); if (G_UNLIKELY (was_blocked == blocked)) goto had_right_state;