projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
787d973
)
bus: fix the precondition for gst_bus_disable_sync_message_emission()
author
Stefan Sauer
<ensonic@users.sf.net>
Wed, 10 Apr 2013 19:24:38 +0000
(21:24 +0200)
committer
Stefan Sauer
<ensonic@users.sf.net>
Wed, 10 Apr 2013 19:50:53 +0000
(21:50 +0200)
Use the right variable and invert the test. The precondition should catch
someone calling to once too often.
gst/gstbus.c
patch
|
blob
|
history
diff --git
a/gst/gstbus.c
b/gst/gstbus.c
index
cdc3942
..
b5343ab
100644
(file)
--- a/
gst/gstbus.c
+++ b/
gst/gstbus.c
@@
-1204,7
+1204,7
@@
void
gst_bus_disable_sync_message_emission (GstBus * bus)
{
g_return_if_fail (GST_IS_BUS (bus));
- g_return_if_fail (bus->priv->num_s
ignal_watchers ==
0);
+ g_return_if_fail (bus->priv->num_s
ync_message_emitters >
0);
GST_OBJECT_LOCK (bus);
bus->priv->num_sync_message_emitters--;