projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
942680d
)
opusdec: fixed buffer unmapping bug
author
Carlos Rafael Giani
<dv@pseudoterminal.org>
Wed, 24 Oct 2012 21:40:20 +0000
(23:40 +0200)
committer
Tim-Philipp Müller
<tim@centricular.net>
Thu, 25 Oct 2012 00:20:23 +0000
(
01:20
+0100)
When the decoder received a NULL buffer, it tried to
unmap a not mapped buffer.
https://bugzilla.gnome.org/show_bug.cgi?id=686829
ext/opus/gstopusdec.c
patch
|
blob
|
history
diff --git
a/ext/opus/gstopusdec.c
b/ext/opus/gstopusdec.c
index
66e4b5d
..
12e1652
100644
(file)
--- a/
ext/opus/gstopusdec.c
+++ b/
ext/opus/gstopusdec.c
@@
-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) {