mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
xvimagesink: allow render rectangle coordinates to be negative
Useful for cropped zooming.
This commit is contained in:
parent
85e2c17f32
commit
578a7ef950
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue