audioaggregator: check sink caps are valid

This commit is contained in:
Luis de Bethencourt 2015-03-24 16:18:22 +00:00
parent 8199405dd7
commit 1011a50766

View file

@ -616,9 +616,13 @@ void
gst_audio_aggregator_set_sink_caps (GstAudioAggregator * aagg,
GstAudioAggregatorPad * pad, GstCaps * caps)
{
gboolean valid;
GST_OBJECT_LOCK (pad);
gst_audio_info_from_caps (&pad->info, caps);
valid = gst_audio_info_from_caps (&pad->info, caps);
GST_OBJECT_UNLOCK (pad);
g_assert (valid);
}