audioaggregator: check sink caps are valid

CID #1291622
This commit is contained in:
Luis de Bethencourt 2015-03-24 15:45:25 +00:00
parent fb758d019c
commit 6d4d0d1cdf

View file

@ -617,7 +617,7 @@ gst_audio_aggregator_set_sink_caps (GstAudioAggregator * aagg,
GstAudioAggregatorPad * pad, GstCaps * caps)
{
GST_OBJECT_LOCK (pad);
gst_audio_info_from_caps (&pad->info, caps);
g_assert (gst_audio_info_from_caps (&pad->info, caps));
GST_OBJECT_UNLOCK (pad);
}