mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
fix default alignment
A 0 alignment is the default.
This commit is contained in:
parent
7c9be852bc
commit
aa97daaf0e
2 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue