videooverlay: Fix render-rectangle range

The range was set to -1 to MAXINT, but the x,y value can be negative.
Relax the restriction so that we can now have negative coordinates.
This commit is contained in:
Nicolas Dufresne 2019-03-04 17:05:04 -05:00
parent 541d598fad
commit 3f3719da41

View file

@ -534,7 +534,7 @@ gst_video_overlay_install_properties (GObjectClass * oclass, gint last_prop_id)
gst_param_spec_array ("render-rectangle", "Render Rectangle",
"The render rectangle ('<x, y, width, height>')",
g_param_spec_int ("rect-value", "Rectangle Value",
"One of x, y, width or height value.", -1, G_MAXINT, -1,
"One of x, y, width or height value.", G_MININT, G_MAXINT, -1,
G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS),
G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
}