From: <cy...@ke...> - 2010-09-28 12:28:45
|
Module: gst-plugins-base Branch: master Commit: 578a7ef9509147e21cb093c2923b14640a33ddca URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=578a7ef9509147e21cb093c2923b14640a33ddca Author: René Stadler <ren...@no...> Date: Thu Jun 17 14:32:22 2010 +0300 xvimagesink: allow render rectangle coordinates to be negative Useful for cropped zooming. --- sys/xvimage/xvimagesink.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c index cd0aca5..abf12ae 100644 --- a/sys/xvimage/xvimagesink.c +++ b/sys/xvimage/xvimagesink.c @@ -2934,7 +2934,7 @@ gst_xvimagesink_set_render_rectangle (GstXOverlay * overlay, gint x, gint y, GstXvImageSink *xvimagesink = GST_XVIMAGESINK (overlay); /* FIXME: how about some locking? */ - if (x >= 0 && y >= 0 && width >= 0 && height >= 0) { + if (width >= 0 && height >= 0) { xvimagesink->render_rect.x = x; xvimagesink->render_rect.y = y; xvimagesink->render_rect.w = width; |