Commit 3ad603be authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

effectv: Make the optv threshold property an uint

parent 2c2611b6
...@@ -327,7 +327,7 @@ gst_optv_set_property (GObject * object, guint prop_id, const GValue * value, ...@@ -327,7 +327,7 @@ gst_optv_set_property (GObject * object, guint prop_id, const GValue * value,
filter->speed = g_value_get_int (value); filter->speed = g_value_get_int (value);
break; break;
case PROP_THRESHOLD: case PROP_THRESHOLD:
filter->threshold = g_value_get_int (value); filter->threshold = g_value_get_uint (value);
break; break;
default: default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); 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, ...@@ -349,7 +349,7 @@ gst_optv_get_property (GObject * object, guint prop_id, GValue * value,
g_value_set_int (value, filter->speed); g_value_set_int (value, filter->speed);
break; break;
case PROP_THRESHOLD: case PROP_THRESHOLD:
g_value_set_int (value, filter->threshold); g_value_set_uint (value, filter->threshold);
break; break;
default: default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
...@@ -396,8 +396,8 @@ gst_optv_class_init (GstOpTVClass * klass) ...@@ -396,8 +396,8 @@ gst_optv_class_init (GstOpTVClass * klass)
GST_PARAM_CONTROLLABLE | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); GST_PARAM_CONTROLLABLE | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_THRESHOLD, g_object_class_install_property (gobject_class, PROP_THRESHOLD,
g_param_spec_int ("threshold", "Threshold", g_param_spec_uint ("threshold", "Threshold",
"Luma threshold", G_MININT, G_MAXINT, DEFAULT_THRESHOLD, "Luma threshold", 0, G_MAXINT, DEFAULT_THRESHOLD,
GST_PARAM_CONTROLLABLE | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); GST_PARAM_CONTROLLABLE | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
trans_class->set_caps = GST_DEBUG_FUNCPTR (gst_optv_set_caps); trans_class->set_caps = GST_DEBUG_FUNCPTR (gst_optv_set_caps);
......
...@@ -56,7 +56,7 @@ struct _GstOpTV ...@@ -56,7 +56,7 @@ struct _GstOpTV
gint mode; gint mode;
gint speed; gint speed;
gint threshold; guint threshold;
gint8 *opmap[4]; gint8 *opmap[4];
guint8 *diff; guint8 *diff;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment