mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 13:08:49 +00:00
audiodecoder: hold caps ref while needed
This commit is contained in:
parent
d55529621c
commit
473371f943
1 changed files with 1 additions and 1 deletions
|
@ -578,7 +578,6 @@ gst_audio_decoder_set_output_format (GstAudioDecoder * dec,
|
|||
GST_DEBUG_OBJECT (dec, "setting src caps %" GST_PTR_FORMAT, caps);
|
||||
|
||||
res = gst_pad_set_caps (dec->srcpad, caps);
|
||||
gst_caps_unref (caps);
|
||||
if (!res)
|
||||
goto done;
|
||||
|
||||
|
@ -615,6 +614,7 @@ done:
|
|||
|
||||
if (query)
|
||||
gst_query_unref (query);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
return res;
|
||||
|
||||
|
|
Loading…
Reference in a new issue