From 66615a8a6a0868e64470d85d672d53fde91ea540 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sat, 14 Apr 2012 11:26:28 +0200 Subject: [PATCH] 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. --- gst-libs/gst/video/gstvideofilter.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst-libs/gst/video/gstvideofilter.c b/gst-libs/gst/video/gstvideofilter.c index e36e45d..1eab2b5 100644 --- a/gst-libs/gst/video/gstvideofilter.c +++ b/gst-libs/gst/video/gstvideofilter.c @@ -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; -- 2.7.4