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:
Thiago Santos 2013-10-22 00:56:29 -03:00
parent fc29cbaa54
commit 94a183a071

View file

@ -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_DEBUG ("gst_buffer_get_size (scrambled_buffer) = %" G_GSIZE_FORMAT,
gst_buffer_get_size (scrambled_buffer)); gst_buffer_get_size (scrambled_buffer));
sub_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); idx * demux->ds_chunk_size, demux->ds_chunk_size);
if (!offset) { if (!offset) {
descrambled_buffer = sub_buffer; descrambled_buffer = sub_buffer;