GstAudioAggregator: fix structure unref in peek_next_sample

The GstStructure attached to the audio sample in peek_next_sample() was
freed prematurely before usage as gst_sample_new() is taking full
ownership on it.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9248>
This commit is contained in:
Loïc Le Page 2025-06-18 19:03:17 +02:00 committed by GStreamer Marge Bot
parent 1f5dbbbd0b
commit f47b0c0293

View File

@ -2176,7 +2176,6 @@ gst_audio_aggregator_peek_next_sample (GstAggregator * agg,
sample = gst_sample_new (pad->priv->buffer, caps, &aggpad->segment, info);
gst_caps_unref (caps);
gst_structure_free (info);
}
return sample;