mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
update for memory api changes
This commit is contained in:
parent
39d78762b9
commit
28034226c6
2 changed files with 3 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue