mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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
This commit is contained in:
parent
3eeca9c7d2
commit
a7c3f353bd
1 changed files with 1 additions and 0 deletions
|
@ -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 |
|
||||
|
|
Loading…
Reference in a new issue