gst-plugins-base: videofilter: shortcut transform_ip when not set
Wim Taymans
wtay at kemper.freedesktop.org
Sat Apr 14 02:27:31 PDT 2012
Module: gst-plugins-base
Branch: master
Commit: 66615a8a6a0868e64470d85d672d53fde91ea540
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=66615a8a6a0868e64470d85d672d53fde91ea540
Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date: Sat Apr 14 11:26:28 2012 +0200
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 files changed, 2 insertions(+), 0 deletions(-)
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;
More information about the gstreamer-commits
mailing list