basetransform: Return GST_FLOW_ERROR if the allocator did not allow to allocate a buffer

This commit is contained in:
Sebastian Dröge 2013-05-24 14:37:19 +02:00
parent bd5708a0cd
commit 3e515099ec

View file

@ -1592,6 +1592,10 @@ default_prepare_output_buffer (GstBaseTransform * trans,
GST_DEBUG_OBJECT (trans, "doing alloc of size %" G_GSIZE_FORMAT, outsize);
*outbuf = gst_buffer_new_allocate (priv->allocator, outsize, &priv->params);
if (!*outbuf) {
ret = GST_FLOW_ERROR;
goto alloc_failed;
}
copy_meta:
/* copy the metadata */