From e8544db8cfdb2e55c1a1a944e60941bad3be10a2 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Thu, 14 Jan 2016 19:03:04 +1100 Subject: [PATCH] gltransformation: support negative scales A scale of -1.0 means to flip the video. --- ext/gl/gstgltransformation.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ext/gl/gstgltransformation.c b/ext/gl/gstgltransformation.c index 4183bf0fe1..5ac2b9cb0f 100644 --- a/ext/gl/gstgltransformation.c +++ b/ext/gl/gstgltransformation.c @@ -199,12 +199,14 @@ gst_gl_transformation_class_init (GstGLTransformationClass * klass) g_object_class_install_property (gobject_class, PROP_SCALE_X, g_param_spec_float ("scale-x", "X Scale", "Scale multiplier for the X-Axis.", - 0.0, G_MAXFLOAT, 1.0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + -G_MAXFLOAT, G_MAXFLOAT, 1.0, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_SCALE_Y, g_param_spec_float ("scale-y", "Y Scale", "Scale multiplier for the Y-Axis.", - 0.0, G_MAXFLOAT, 1.0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + -G_MAXFLOAT, G_MAXFLOAT, 1.0, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /* Pivot */ g_object_class_install_property (gobject_class, PROP_PIVOT_X,