ffmpeg | branch: master | Daniel Moran <dij...@gmail.com> | Sat Dec  6 23:48:13 
2014 +0000| [0ae37e460c345a4c76e28256af56931e00c94cb5] | committer: Michael 
Niedermayer

avdevice/xcbgrab: Fix show_region rectangle

Fixes trac ticket #4164

This is to address an error when using show_region, which would cause part of 
the captured area to become static.
It looks like the rectangle specifying the capture area was relative to the 
capture window.

Signed-off-by: Michael Niedermayer <michae...@gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0ae37e460c345a4c76e28256af56931e00c94cb5
---

 libavdevice/xcbgrab.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavdevice/xcbgrab.c b/libavdevice/xcbgrab.c
index df8de20..6aa1211 100644
--- a/libavdevice/xcbgrab.c
+++ b/libavdevice/xcbgrab.c
@@ -564,7 +564,7 @@ static void setup_window(AVFormatContext *s)
     uint32_t values[] = { 1,
                           XCB_EVENT_MASK_EXPOSURE |
                           XCB_EVENT_MASK_STRUCTURE_NOTIFY };
-    xcb_rectangle_t rect = { c->x, c->y, c->width, c->height };
+    xcb_rectangle_t rect = { 0, 0, c->width, c->height };
 
     c->window = xcb_generate_id(c->conn);
 

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to