From 1250a7406d6cc6ca86e14d22dfe1e6fcff33dfb8 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Wed, 26 May 2010 18:29:15 -0300 Subject: [PATCH] geometrictransform: Accept any rgb or gray Using gstvideo functions geometrictransform can handle rgb or gray, put that on template caps --- gst/geometrictransform/gstgeometrictransform.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gst/geometrictransform/gstgeometrictransform.c b/gst/geometrictransform/gstgeometrictransform.c index 28200dcdf5..17d0acc3f7 100644 --- a/gst/geometrictransform/gstgeometrictransform.c +++ b/gst/geometrictransform/gstgeometrictransform.c @@ -28,17 +28,17 @@ GST_DEBUG_CATEGORY_STATIC (geometric_transform_debug); #define GST_CAT_DEFAULT geometric_transform_debug static GstStaticPadTemplate gst_geometric_transform_src_template = -GST_STATIC_PAD_TEMPLATE ("src", + GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, - GST_STATIC_CAPS (GST_VIDEO_CAPS_RGB) + GST_STATIC_CAPS ("video/x-raw-rgb; video/x-raw-gray") ); static GstStaticPadTemplate gst_geometric_transform_sink_template = -GST_STATIC_PAD_TEMPLATE ("sink", + GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, - GST_STATIC_CAPS (GST_VIDEO_CAPS_RGB) + GST_STATIC_CAPS ("video/x-raw-rgb; video/x-raw-gray") ); static GstVideoFilterClass *parent_class = NULL;