GstBuffer * inbuf, GstBuffer ** outbuf)
{
GstBaseTransformPrivate *priv;
- GstFlowReturn ret = GST_FLOW_OK;
+ GstFlowReturn ret;
GstBaseTransformClass *bclass;
GstCaps *incaps, *outcaps;
gsize insize, outsize;
}
GST_DEBUG_OBJECT (trans, "using pool alloc");
ret = gst_buffer_pool_acquire_buffer (priv->pool, outbuf, NULL);
+ if (ret != GST_FLOW_OK)
+ goto alloc_failed;
+
goto copy_meta;
}
}
done:
- return ret;
+ return GST_FLOW_OK;
/* ERRORS */
/* ERRORS */
GST_ERROR_OBJECT (trans, "unknown output size");
return GST_FLOW_ERROR;
}
+alloc_failed:
+ {
+ GST_DEBUG_OBJECT (trans, "could not allocate buffer from pool");
+ return ret;
+ }
}
typedef struct