mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
opusdec: fix caps leaks
The caps returned by gst_pad_get_allowed_caps() was leaked. https://bugzilla.gnome.org/show_bug.cgi?id=765706
This commit is contained in:
parent
f7a31a79f4
commit
8d6e315b01
1 changed files with 2 additions and 0 deletions
|
@ -267,6 +267,7 @@ gst_opus_dec_negotiate (GstOpusDec * dec, const GstAudioChannelPosition * pos)
|
|||
if (gst_caps_is_empty (inter)) {
|
||||
GST_DEBUG_OBJECT (dec, "Empty intersection, failed to negotiate");
|
||||
gst_caps_unref (inter);
|
||||
gst_caps_unref (caps);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -283,6 +284,7 @@ gst_opus_dec_negotiate (GstOpusDec * dec, const GstAudioChannelPosition * pos)
|
|||
|
||||
dec->sample_rate = rate;
|
||||
dec->n_channels = channels;
|
||||
gst_caps_unref (caps);
|
||||
}
|
||||
|
||||
if (dec->n_channels == 0) {
|
||||
|
|
Loading…
Reference in a new issue