mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
bus: fix the precondition for gst_bus_disable_sync_message_emission()
Use the right variable and invert the test. The precondition should catch someone calling to once too often.
This commit is contained in:
parent
787d973fb2
commit
8d816e9527
1 changed files with 1 additions and 1 deletions
|
@ -1204,7 +1204,7 @@ void
|
||||||
gst_bus_disable_sync_message_emission (GstBus * bus)
|
gst_bus_disable_sync_message_emission (GstBus * bus)
|
||||||
{
|
{
|
||||||
g_return_if_fail (GST_IS_BUS (bus));
|
g_return_if_fail (GST_IS_BUS (bus));
|
||||||
g_return_if_fail (bus->priv->num_signal_watchers == 0);
|
g_return_if_fail (bus->priv->num_sync_message_emitters > 0);
|
||||||
|
|
||||||
GST_OBJECT_LOCK (bus);
|
GST_OBJECT_LOCK (bus);
|
||||||
bus->priv->num_sync_message_emitters--;
|
bus->priv->num_sync_message_emitters--;
|
||||||
|
|
Loading…
Reference in a new issue