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:
Stefan Sauer 2013-04-10 21:24:38 +02:00
parent 787d973fb2
commit 8d816e9527

View file

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