summaryrefslogtreecommitdiff
path: root/gst/gaudieffects
diff options
context:
space:
mode:
authorVineeth T M <vineeth.tm@samsung.com>2015-05-26 14:14:34 +0100
committerLuis de Bethencourt <luis.bg@samsung.com>2015-05-26 14:17:31 +0100
commit5985bc4b05e13231d058e041d9317e6f7c7f3625 (patch)
tree3c41e9e7111c2656d301dd2ce9d217eba259c69e /gst/gaudieffects
parentdb9e0cf5c76f00268baf495ae0ceb26a8c6f12a4 (diff)
downloadgstreamer-plugins-bad-5985bc4b05e13231d058e041d9317e6f7c7f3625.tar.gz
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
Diffstat (limited to 'gst/gaudieffects')
-rw-r--r--gst/gaudieffects/gstexclusion.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gst/gaudieffects/gstexclusion.c b/gst/gaudieffects/gstexclusion.c
index 8f762ad34..860c5b47d 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++;