mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
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
This commit is contained in:
parent
64d7e27811
commit
e6b05111d3
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue