summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-02-18 11:10:14 +0200
committerSebastian Dröge <sebastian@centricular.com>2016-02-18 11:10:14 +0200
commita7c3f353bdbbdfa5baa091677de22172e5230e83 (patch)
tree9063f4ed9aaf57d6fa3b571d459af16de7be068e
parent3eeca9c7d20bac6f4da1e1100982836539a2daf7 (diff)
downloadgstreamer-plugins-good-a7c3f353bdbbdfa5baa091677de22172e5230e83.tar.gz
matroskademux: Unmap wavpack header buffer after creating it
Otherwise it will be mapped writable all the time and we can't read from it anywhere. https://bugzilla.gnome.org/show_bug.cgi?id=762239
-rw-r--r--gst/matroska/matroska-demux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c
index fe9df563b..be973d0dc 100644
--- a/gst/matroska/matroska-demux.c
+++ b/gst/matroska/matroska-demux.c
@@ -2872,6 +2872,7 @@ gst_matroska_demux_add_wvpk_header (GstElement * element,
GST_WRITE_UINT8 (data + 11, wvh.index_no);
GST_WRITE_UINT32_LE (data + 12, wvh.total_samples);
GST_WRITE_UINT32_LE (data + 16, wvh.block_index);
+ gst_buffer_unmap (newbuf, &outmap);
/* Append data from buf: */
gst_buffer_copy_into (newbuf, *buf, GST_BUFFER_COPY_TIMESTAMPS |