xvimagesink: allow render rectangle coordinates to be negative

Useful for cropped zooming.
This commit is contained in:
René Stadler 2010-06-17 14:32:22 +03:00
parent 85e2c17f32
commit 578a7ef950

View file

@ -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;