Commit 28034226 authored by Wim Taymans's avatar Wim Taymans
Browse files

update for memory api changes

parent 39d78762
......@@ -109,7 +109,7 @@ gst_rtp_buffer_allocate_data (GstBuffer * buffer, guint payload_len,
len = GST_RTP_HEADER_LEN + csrc_count * sizeof (guint32)
+ payload_len + pad_len;
mem = gst_allocator_alloc (NULL, len, 0);
mem = gst_allocator_alloc (NULL, 0, len, 0, len, 0);
gst_memory_map (mem, &map, GST_MAP_WRITE);
/* fill in defaults */
......
......@@ -251,13 +251,12 @@ video_buffer_pool_alloc (GstBufferPool * pool, GstBuffer ** buffer,
GST_DEBUG_OBJECT (pool, "alloc %" G_GSIZE_FORMAT, info->size);
maxsize = info->size + priv->prefix + priv->padding;
mem = gst_allocator_alloc (priv->allocator, maxsize, priv->align);
mem = gst_allocator_alloc (priv->allocator, 0, maxsize, priv->prefix,
info->size, priv->align);
if (mem == NULL)
goto no_memory;
*buffer = gst_buffer_new ();
if (priv->prefix != 0 || priv->padding != 0)
gst_memory_resize (mem, priv->prefix, info->size);
gst_buffer_take_memory (*buffer, -1, mem);
if (priv->add_videometa) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment