mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
videoscale: Don't copy scaled metas
Returning TRUE from the `transform_meta` function tells GstBaseTransform to copy the meta into the new buffer. If videoscale has already transformed a meta by scaling it, it should always return FALSE to avoid duplicating the meta. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1630>
This commit is contained in:
parent
52d7370311
commit
c8a24146c4
1 changed files with 1 additions and 1 deletions
|
@ -726,7 +726,7 @@ gst_video_convert_scale_transform_meta (GstBaseTransform * trans,
|
||||||
{ &videofilter->in_info, &videofilter->out_info };
|
{ &videofilter->in_info, &videofilter->out_info };
|
||||||
|
|
||||||
if (info->transform_func)
|
if (info->transform_func)
|
||||||
return info->transform_func (outbuf, meta, inbuf, _scale_quark, &trans);
|
info->transform_func (outbuf, meta, inbuf, _scale_quark, &trans);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue