Revert "audioaggregator: check sink caps are valid"
authorLuis de Bethencourt <luis.bg@samsung.com>
Tue, 24 Mar 2015 16:17:00 +0000 (16:17 +0000)
committerLuis de Bethencourt <luis.bg@samsung.com>
Tue, 24 Mar 2015 16:17:00 +0000 (16:17 +0000)
This reverts commit 6d4d0d1cdf7c7531fbf72ce39e1eab1260d20550.

Never put code with side effects into an assertion, it can be compiled out

gst/audiomixer/gstaudioaggregator.c

index 647f36a..b526350 100644 (file)
@@ -617,7 +617,7 @@ gst_audio_aggregator_set_sink_caps (GstAudioAggregator * aagg,
     GstAudioAggregatorPad * pad, GstCaps * caps)
 {
   GST_OBJECT_LOCK (pad);
-  g_assert (gst_audio_info_from_caps (&pad->info, caps));
+  gst_audio_info_from_caps (&pad->info, caps);
   GST_OBJECT_UNLOCK (pad);
 }