mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-28 10:08:17 +00:00
audioaggregator: Don't re-send the caps if they did not change
https://bugzilla.gnome.org/show_bug.cgi?id=740236
This commit is contained in:
parent
959f8e4a3e
commit
01520c7e47
1 changed files with 7 additions and 4 deletions
|
@ -635,11 +635,14 @@ gst_audio_aggregator_set_src_caps (GstAudioAggregator * aagg, GstCaps * caps)
|
||||||
GST_AUDIO_AGGREGATOR_LOCK (aagg);
|
GST_AUDIO_AGGREGATOR_LOCK (aagg);
|
||||||
GST_OBJECT_LOCK (aagg);
|
GST_OBJECT_LOCK (aagg);
|
||||||
|
|
||||||
GST_INFO_OBJECT (aagg, "setting caps to %" GST_PTR_FORMAT, caps);
|
if (!gst_audio_info_is_equal (&info, &aagg->info)) {
|
||||||
gst_caps_replace (&aagg->current_caps, caps);
|
GST_INFO_OBJECT (aagg, "setting caps to %" GST_PTR_FORMAT, caps);
|
||||||
|
gst_caps_replace (&aagg->current_caps, caps);
|
||||||
|
|
||||||
memcpy (&aagg->info, &info, sizeof (info));
|
memcpy (&aagg->info, &info, sizeof (info));
|
||||||
aagg->priv->send_caps = TRUE;
|
aagg->priv->send_caps = TRUE;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
GST_OBJECT_UNLOCK (aagg);
|
GST_OBJECT_UNLOCK (aagg);
|
||||||
GST_AUDIO_AGGREGATOR_UNLOCK (aagg);
|
GST_AUDIO_AGGREGATOR_UNLOCK (aagg);
|
||||||
|
|
Loading…
Reference in a new issue