audiomixer: fix deadlock when G_DISABLE_ASSERT is not defined
authorTim-Philipp Müller <tim@centricular.com>
Sat, 26 Sep 2015 09:21:41 +0000 (10:21 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 26 Sep 2015 09:26:12 +0000 (10:26 +0100)
This makes the audiomixer unit test time out in master.
Broke with 587e7c4

gst/audiomixer/gstaudioaggregator.c

index 156fa93626a49052c38c893e4f769ab138871637..2afea27d48cb663111d06f5dd372616b1240c1a1 100644 (file)
@@ -631,7 +631,7 @@ gst_audio_aggregator_set_sink_caps (GstAudioAggregator * aagg,
   GST_OBJECT_LOCK (pad);
   valid = gst_audio_info_from_caps (&pad->info, caps);
   g_assert (valid);
-
+  GST_OBJECT_UNLOCK (pad);
 #else
   GST_OBJECT_LOCK (pad);
   (void) gst_audio_info_from_caps (&pad->info, caps);