mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
audioencoder: gst_pad_get_pad_template_caps() now returns a new reference, don't forget to unref
This commit is contained in:
parent
5aa6748151
commit
1cb4029d00
1 changed files with 2 additions and 1 deletions
|
@ -1155,7 +1155,7 @@ refuse_caps:
|
|||
GstCaps *
|
||||
gst_audio_encoder_proxy_getcaps (GstAudioEncoder * enc, GstCaps * caps)
|
||||
{
|
||||
const GstCaps *templ_caps;
|
||||
GstCaps *templ_caps = NULL;
|
||||
GstCaps *allowed = NULL;
|
||||
GstCaps *fcaps, *filter_caps;
|
||||
gint i, j;
|
||||
|
@ -1212,6 +1212,7 @@ gst_audio_encoder_proxy_getcaps (GstAudioEncoder * enc, GstCaps * caps)
|
|||
gst_caps_unref (filter_caps);
|
||||
|
||||
done:
|
||||
gst_caps_replace (&templ_caps, NULL);
|
||||
gst_caps_replace (&allowed, NULL);
|
||||
|
||||
GST_LOG_OBJECT (enc, "proxy caps %" GST_PTR_FORMAT, fcaps);
|
||||
|
|
Loading…
Reference in a new issue