From 5985bc4b05e13231d058e041d9317e6f7c7f3625 Mon Sep 17 00:00:00 2001 From: Vineeth T M Date: Tue, 26 May 2015 14:14:34 +0100 Subject: [PATCH] exclusion: exception when set factor to 0 When factor property is set to 0, transform just returns. Adjust the minimum value to 1. https://bugzilla.gnome.org/show_bug.cgi?id=743907 --- gst/gaudieffects/gstexclusion.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gst/gaudieffects/gstexclusion.c b/gst/gaudieffects/gstexclusion.c index 8f762ad34f..860c5b47d3 100644 --- a/gst/gaudieffects/gstexclusion.c +++ b/gst/gaudieffects/gstexclusion.c @@ -151,7 +151,7 @@ gst_exclusion_class_init (GstExclusionClass * klass) g_object_class_install_property (gobject_class, PROP_FACTOR, g_param_spec_uint ("factor", "Factor", - "Exclusion factor parameter", 0, 175, DEFAULT_FACTOR, + "Exclusion factor parameter", 1, 175, DEFAULT_FACTOR, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | GST_PARAM_CONTROLLABLE)); vfilter_class->transform_frame = @@ -270,9 +270,6 @@ transform (guint32 * src, guint32 * dest, gint video_area, gint factor) guint32 in; gint x, red, green, blue; - if (G_UNLIKELY (factor == 0)) - return; - for (x = 0; x < video_area; x++) { in = *src++;