Skip to content
Snippets Groups Projects
Commit e6b05111 authored by Carlos Rafael Giani's avatar Carlos Rafael Giani Committed by Tim-Philipp Müller
Browse files

opusdec: fixed buffer unmapping bug

When the decoder received a NULL buffer, it tried to
unmap a not mapped buffer.

https://bugzilla.gnome.org/show_bug.cgi?id=686829
parent 64d7e278
No related branches found
No related tags found
No related merge requests found
......@@ -453,7 +453,7 @@ opus_dec_chain_parse_data (GstOpusDec * dec, GstBuffer * buffer)
n = opus_multistream_decode (dec->state, data, size, out_data, samples, 0);
}
gst_buffer_unmap (outbuf, &omap);
if (buf)
if (data != NULL)
gst_buffer_unmap (buf, &map);
if (n < 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment