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:
parent
1f5dbbbd0b
commit
f47b0c0293
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user