mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
remove deprecated buffer methods
This commit is contained in:
parent
3712ca2da4
commit
68814a6988
2 changed files with 2 additions and 2 deletions
|
@ -357,7 +357,7 @@ gst_gio_base_src_create (GstBaseSrc * base_src, guint64 offset, guint size,
|
|||
return ret;
|
||||
}
|
||||
|
||||
src->cache = gst_buffer_try_new_and_alloc (cachesize);
|
||||
src->cache = gst_buffer_new_and_alloc (cachesize);
|
||||
if (G_UNLIKELY (src->cache == NULL)) {
|
||||
GST_ERROR_OBJECT (src, "Failed to allocate %u bytes", cachesize);
|
||||
return GST_FLOW_ERROR;
|
||||
|
|
|
@ -624,7 +624,7 @@ gst_gnome_vfs_src_create (GstBaseSrc * basesrc, guint64 offset, guint size,
|
|||
}
|
||||
}
|
||||
|
||||
buf = gst_buffer_try_new_and_alloc (size);
|
||||
buf = gst_buffer_new_and_alloc (size);
|
||||
if (G_UNLIKELY (buf == NULL)) {
|
||||
GST_ERROR_OBJECT (src, "Failed to allocate %u bytes", size);
|
||||
return GST_FLOW_ERROR;
|
||||
|
|
Loading…
Reference in a new issue