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;