fix default alignment
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 4 Aug 2011 09:00:57 +0000 (11:00 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 4 Aug 2011 09:00:57 +0000 (11:00 +0200)
A 0 alignment is the default.

gst/gstbufferpool.c
gst/gstmemory.c

index 1701106..bb91167 100644 (file)
@@ -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");
index dfb3697..32c045c 100644 (file)
@@ -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);