mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
v4l2transform: copy metdata
This commit is contained in:
parent
b781156625
commit
4f7ee5c130
1 changed files with 8 additions and 0 deletions
|
@ -407,6 +407,7 @@ gst_v4l2_transform_prepare_output_buffer (GstBaseTransform * trans,
|
|||
GstV4l2Transform *self = GST_V4L2_TRANSFORM (trans);
|
||||
GstBufferPool *pool = GST_BUFFER_POOL (self->v4l2output->pool);
|
||||
GstFlowReturn ret = GST_FLOW_OK;
|
||||
GstBaseTransformClass *bclass = GST_BASE_TRANSFORM_CLASS (parent_class);
|
||||
|
||||
if (gst_base_transform_is_passthrough (trans)) {
|
||||
GST_DEBUG_OBJECT (self, "Passthrough, no need to do anything");
|
||||
|
@ -441,6 +442,13 @@ gst_v4l2_transform_prepare_output_buffer (GstBaseTransform * trans,
|
|||
*outbuf = NULL;
|
||||
}
|
||||
|
||||
if (bclass->copy_metadata)
|
||||
if (!bclass->copy_metadata (trans, inbuf, *outbuf)) {
|
||||
/* something failed, post a warning */
|
||||
GST_ELEMENT_WARNING (self, STREAM, NOT_IMPLEMENTED,
|
||||
("could not copy metadata"), (NULL));
|
||||
}
|
||||
|
||||
beach:
|
||||
return ret;
|
||||
|
||||
|
|
Loading…
Reference in a new issue