mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
basetransform: Return GST_FLOW_ERROR if the allocator did not allow to allocate a buffer
This commit is contained in:
parent
bd5708a0cd
commit
3e515099ec
1 changed files with 4 additions and 0 deletions
|
@ -1592,6 +1592,10 @@ default_prepare_output_buffer (GstBaseTransform * trans,
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (trans, "doing alloc of size %" G_GSIZE_FORMAT, outsize);
|
GST_DEBUG_OBJECT (trans, "doing alloc of size %" G_GSIZE_FORMAT, outsize);
|
||||||
*outbuf = gst_buffer_new_allocate (priv->allocator, outsize, &priv->params);
|
*outbuf = gst_buffer_new_allocate (priv->allocator, outsize, &priv->params);
|
||||||
|
if (!*outbuf) {
|
||||||
|
ret = GST_FLOW_ERROR;
|
||||||
|
goto alloc_failed;
|
||||||
|
}
|
||||||
|
|
||||||
copy_meta:
|
copy_meta:
|
||||||
/* copy the metadata */
|
/* copy the metadata */
|
||||||
|
|
Loading…
Reference in a new issue