remove deprecated buffer methods

This commit is contained in:
Wim Taymans 2011-03-29 11:08:19 +02:00
parent 3712ca2da4
commit 68814a6988
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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;