summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Santos <ts.santos@partner.samsung.com>2013-10-22 00:56:29 -0300
committerSebastian Dröge <sebastian@centricular.com>2013-11-09 10:37:16 +0100
commitcd2609c92f19357afbe7ce0667b619b1671efbf4 (patch)
tree32d5d57c6bc1e8540d4aef3381335011ec1c0627
parent1a15655fd5ad46209ad0a893c752f58b575fd398 (diff)
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
-rw-r--r--gst/asfdemux/gstasfdemux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/asfdemux/gstasfdemux.c b/gst/asfdemux/gstasfdemux.c
index a19d223c..732bd2c3 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;