}
/* sanity check (only if caps are the same) */
- if (G_LIKELY (newcaps == caps) && G_UNLIKELY (GST_BUFFER_SIZE (*buf) < size))
+ if (G_LIKELY (newcaps == caps)
+ && G_UNLIKELY (gst_buffer_get_size (*buf) < size))
goto wrong_size_fallback;
return ret;
{
GST_CAT_ERROR_OBJECT (GST_CAT_PADS, pad, "buffer returned by alloc "
"function is too small (%u < %d), doing fallback buffer alloc",
- GST_BUFFER_SIZE (*buf), size);
+ gst_buffer_get_size (*buf), size);
gst_buffer_unref (*buf);