mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
asfdemux: really copy the buffer data
Pass the copy-memory flag to copy the memory for the output buffer, otherwise we end with 0-sized buffers https://bugzilla.gnome.org/show_bug.cgi?id=684942
This commit is contained in:
parent
fc29cbaa54
commit
94a183a071
1 changed files with 1 additions and 1 deletions
|
@ -4109,7 +4109,7 @@ gst_asf_demux_descramble_buffer (GstASFDemux * demux, AsfStream * stream,
|
|||
GST_DEBUG ("gst_buffer_get_size (scrambled_buffer) = %" G_GSIZE_FORMAT,
|
||||
gst_buffer_get_size (scrambled_buffer));
|
||||
sub_buffer =
|
||||
gst_buffer_copy_region (scrambled_buffer, GST_BUFFER_COPY_NONE,
|
||||
gst_buffer_copy_region (scrambled_buffer, GST_BUFFER_COPY_MEMORY,
|
||||
idx * demux->ds_chunk_size, demux->ds_chunk_size);
|
||||
if (!offset) {
|
||||
descrambled_buffer = sub_buffer;
|
||||
|
|
Loading…
Reference in a new issue