diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2019-03-04 17:05:04 -0500 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2019-05-01 17:44:22 +0100 |
commit | 8f4f6dacf069f60a41724df29d898dca3538a165 (patch) | |
tree | 444d44fe90d29e994c3fc5e7987d14107539e7b5 | |
parent | db20ecf81e1d561ed8b67fa3d942d267c7f325c9 (diff) | |
download | gstreamer-plugins-base-8f4f6dacf069f60a41724df29d898dca3538a165.tar.gz |
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.
-rw-r--r-- | gst-libs/gst/video/videooverlay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/video/videooverlay.c b/gst-libs/gst/video/videooverlay.c index 656fb1534..7cc8b69f0 100644 --- a/gst-libs/gst/video/videooverlay.c +++ b/gst-libs/gst/video/videooverlay.c @@ -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)); } |