mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
opusdec: plug caps leak
https://bugzilla.gnome.org/show_bug.cgi?id=763059
This commit is contained in:
parent
e2c992de46
commit
461cdd8c26
1 changed files with 1 additions and 1 deletions
|
@ -888,7 +888,7 @@ gst_opus_dec_getcaps (GstAudioDecoder * dec, GstCaps * filter)
|
|||
if (filter)
|
||||
gst_caps_unref (filter);
|
||||
if (caps) {
|
||||
caps = gst_caps_copy (caps);
|
||||
caps = gst_caps_make_writable (caps);
|
||||
for (n = 0; n < gst_caps_get_size (caps); ++n) {
|
||||
GstStructure *s = gst_caps_get_structure (caps, n);
|
||||
if (gst_structure_get_int (s, "channels", &channels)) {
|
||||
|
|
Loading…
Reference in a new issue