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:21:41 +0000 (10:21 +0100)
This makes the audiomixer unit test time out in master.
Broke with 587e7c4

gst/audiomixer/gstaudioaggregator.c

index d774694e8aac7cb2b4a3253dee39cee05ec7a8cf..767a48d7c36809c38e90a1b03c6ab46fbd79e021 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);