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.
This commit is contained in:
Edward Hervey 2005-11-03 12:48:30 +00:00
parent 5c2af06cc5
commit 7c1da7fee0
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2005-11-03 Edward Hervey <edward@fluendo.com>
* 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 <tim at centricular dot net>
* gst/gstbus.c: (gst_bus_class_init):

View file

@ -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;