mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
audioaggregator: check sink caps are valid
This commit is contained in:
parent
8199405dd7
commit
1011a50766
1 changed files with 5 additions and 1 deletions
|
@ -616,9 +616,13 @@ void
|
||||||
gst_audio_aggregator_set_sink_caps (GstAudioAggregator * aagg,
|
gst_audio_aggregator_set_sink_caps (GstAudioAggregator * aagg,
|
||||||
GstAudioAggregatorPad * pad, GstCaps * caps)
|
GstAudioAggregatorPad * pad, GstCaps * caps)
|
||||||
{
|
{
|
||||||
|
gboolean valid;
|
||||||
|
|
||||||
GST_OBJECT_LOCK (pad);
|
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);
|
GST_OBJECT_UNLOCK (pad);
|
||||||
|
|
||||||
|
g_assert (valid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue