From 85e2c17f32a766a161e5963532b1c05735c781b9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ren=C3=A9=20Stadler?= Date: Thu, 17 Jun 2010 14:33:44 +0300 Subject: [PATCH] xoverlay: allow render rectangle coordinates to be negative This is useful for cropped zooming of the overlay. --- gst-libs/gst/interfaces/xoverlay.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gst-libs/gst/interfaces/xoverlay.c b/gst-libs/gst/interfaces/xoverlay.c index 2900021..e7bd655 100644 --- a/gst-libs/gst/interfaces/xoverlay.c +++ b/gst-libs/gst/interfaces/xoverlay.c @@ -537,7 +537,7 @@ gst_x_overlay_handle_events (GstXOverlay * overlay, gboolean handle_events) * By specifying the rectangle, the video can be overlayed to a specific region * of that window only. After setting the new rectangle one should call * gst_x_overlay_expose() to force a redraw. To unset the region pass -1 for - * the @x, @y, @width, and @height parameters. + * the @width and @height parameters. * * This method is needed for non fullscreen video overlay in UI toolkits that * do not support subwindows. @@ -554,8 +554,8 @@ gst_x_overlay_set_render_rectangle (GstXOverlay * overlay, g_return_val_if_fail (overlay != NULL, FALSE); g_return_val_if_fail (GST_IS_X_OVERLAY (overlay), FALSE); - g_return_val_if_fail ((x == -1 && y == -1 && width == -1 && height == -1) || - (x >= 0 && y >= 0 && width > 0 && height > 0), FALSE); + g_return_val_if_fail ((width == -1 && height == -1) || + (width > 0 && height > 0), FALSE); klass = GST_X_OVERLAY_GET_CLASS (overlay); -- 2.7.4