mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
videofilter: shortcut transform_ip when not set
We can ask the base class to not call our transform_ip method when the subclass didn't provide an in-place transform function.
This commit is contained in:
parent
fd4c8d9252
commit
66615a8a6a
1 changed files with 2 additions and 0 deletions
|
@ -202,6 +202,8 @@ gst_video_filter_set_caps (GstBaseTransform * trans, GstCaps * incaps,
|
|||
filter->out_info = out_info;
|
||||
if (fclass->transform_frame == NULL)
|
||||
gst_base_transform_set_in_place (trans, TRUE);
|
||||
if (fclass->transform_frame_ip == NULL)
|
||||
GST_BASE_TRANSFORM_CLASS (fclass)->transform_ip_on_passthrough = FALSE;
|
||||
}
|
||||
filter->negotiated = res;
|
||||
|
||||
|
|
Loading…
Reference in a new issue