From aa97daaf0e4886a848d82299bf4f068e90fef659 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 4 Aug 2011 11:00:57 +0200 Subject: [PATCH] fix default alignment A 0 alignment is the default. --- gst/gstbufferpool.c | 2 +- gst/gstmemory.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/gstbufferpool.c b/gst/gstbufferpool.c index 1701106..bb91167 100644 --- a/gst/gstbufferpool.c +++ b/gst/gstbufferpool.c @@ -117,7 +117,7 @@ gst_buffer_pool_init (GstBufferPool * pool) pool->configured = FALSE; pool->started = FALSE; pool->config = gst_structure_id_empty_new (GST_QUARK (BUFFER_POOL_CONFIG)); - gst_buffer_pool_config_set (pool->config, NULL, 0, 0, 0, 0, 1); + gst_buffer_pool_config_set (pool->config, NULL, 0, 0, 0, 0, 0); gst_poll_write_control (pool->poll); GST_DEBUG_OBJECT (pool, "created"); diff --git a/gst/gstmemory.c b/gst/gstmemory.c index dfb3697..32c045c 100644 --- a/gst/gstmemory.c +++ b/gst/gstmemory.c @@ -288,7 +288,7 @@ _fallback_copy (GstMemory * mem, gssize offset, gsize size) if (size == -1) size = msize > offset ? msize - offset : 0; /* use the same allocator as the memory we copy, FIXME, alignment? */ - copy = gst_allocator_alloc (mem->allocator, size, 1); + copy = gst_allocator_alloc (mem->allocator, size, 0); dest = gst_memory_map (copy, NULL, NULL, GST_MAP_WRITE); memcpy (dest, data + offset, size); gst_memory_unmap (copy, dest, size); -- 2.7.4