diff options
author | Carlos Rafael Giani <dv@pseudoterminal.org> | 2012-10-24 23:40:20 +0200 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2012-10-25 01:20:23 +0100 |
commit | e6b05111d37291a56e5edaca35cc4663814c5c89 (patch) | |
tree | bea2d2e3b8d1962f9b04ae0780e0f99c1b79c0f7 | |
parent | 64d7e27811859b1e37a685b0ef992fd3eaaf3f0a (diff) | |
download | gstreamer-plugins-bad-e6b05111d37291a56e5edaca35cc4663814c5c89.tar.gz |
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
-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 66e4b5d85..12e1652f2 100644 --- 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) { |