Commit 461cdd8c authored by Havard Graff's avatar Havard Graff Committed by Tim-Philipp Müller
parent e2c992de
......@@ -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)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment