videooverlay: Fix render-rectangle range
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 4 Mar 2019 22:05:04 +0000 (17:05 -0500)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 4 Mar 2019 22:05:04 +0000 (17:05 -0500)
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.

gst-libs/gst/video/videooverlay.c

index 656fb15..7cc8b69 100644 (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));
 }