summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-07-12 11:26:57 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-07-16 12:04:06 +0200
commit3ad603be84ad0f15b2b452e96d3f8a0885fad4bc (patch)
tree37838dcdd87482c0fb0a9347923a456fb3a18924
parent2c2611b6bfd6129476f52806a41cf4f084e847fd (diff)
effectv: Make the optv threshold property an uint
-rw-r--r--gst/effectv/gstop.c8
-rw-r--r--gst/effectv/gstop.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/gst/effectv/gstop.c b/gst/effectv/gstop.c
index 0b0c27b9..192d935d 100644
--- a/gst/effectv/gstop.c
+++ b/gst/effectv/gstop.c
@@ -327,7 +327,7 @@ gst_optv_set_property (GObject * object, guint prop_id, const GValue * value,
filter->speed = g_value_get_int (value);
break;
case PROP_THRESHOLD:
- filter->threshold = g_value_get_int (value);
+ filter->threshold = g_value_get_uint (value);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
@@ -349,7 +349,7 @@ gst_optv_get_property (GObject * object, guint prop_id, GValue * value,
g_value_set_int (value, filter->speed);
break;
case PROP_THRESHOLD:
- g_value_set_int (value, filter->threshold);
+ g_value_set_uint (value, filter->threshold);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
@@ -396,8 +396,8 @@ gst_optv_class_init (GstOpTVClass * klass)
GST_PARAM_CONTROLLABLE | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_THRESHOLD,
- g_param_spec_int ("threshold", "Threshold",
- "Luma threshold", G_MININT, G_MAXINT, DEFAULT_THRESHOLD,
+ g_param_spec_uint ("threshold", "Threshold",
+ "Luma threshold", 0, G_MAXINT, DEFAULT_THRESHOLD,
GST_PARAM_CONTROLLABLE | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
trans_class->set_caps = GST_DEBUG_FUNCPTR (gst_optv_set_caps);
diff --git a/gst/effectv/gstop.h b/gst/effectv/gstop.h
index 72f55734..e7946030 100644
--- a/gst/effectv/gstop.h
+++ b/gst/effectv/gstop.h
@@ -56,7 +56,7 @@ struct _GstOpTV
gint mode;
gint speed;
- gint threshold;
+ guint threshold;
gint8 *opmap[4];
guint8 *diff;