From 94a183a071a53a808857ccc3ff6687bc09f1b183 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Tue, 22 Oct 2013 00:56:29 -0300 Subject: [PATCH] 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 --- gst/asfdemux/gstasfdemux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/asfdemux/gstasfdemux.c b/gst/asfdemux/gstasfdemux.c index a19d223ce6..732bd2c33f 100644 --- a/gst/asfdemux/gstasfdemux.c +++ b/gst/asfdemux/gstasfdemux.c @@ -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;