diff options
author | Havard Graff <havard.graff@gmail.com> | 2016-03-03 20:10:17 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2016-03-03 20:10:09 +0000 |
commit | 461cdd8c266c85a008ea0a8ab934a9a2487e5567 (patch) | |
tree | aba88897e44532c69ec60904189a82fe246c14c1 | |
parent | e2c992de46fd2667bd28602944ef1adb7715b74b (diff) | |
download | gstreamer-plugins-base-461cdd8c266c85a008ea0a8ab934a9a2487e5567.tar.gz |
opusdec: plug caps leak
https://bugzilla.gnome.org/show_bug.cgi?id=763059
-rw-r--r-- | ext/opus/gstopusdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/opus/gstopusdec.c b/ext/opus/gstopusdec.c index 91dedb9da..7aa9838ff 100644 --- a/ext/opus/gstopusdec.c +++ b/ext/opus/gstopusdec.c @@ -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)) { |