[FFmpeg-devel] [PATCH] Fix for xcb based x11grab, trac ticket #4164

Daniel Moran dijumx at gmail.com
Sun Dec 7 00:48:13 CET 2014


Hi, 

This is the first time I've created/submitted a GIT patch, so I apologise in advance if I have made a mistake.

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.

Regards,
Daniel

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

diff --git a/libavdevice/xcbgrab.c b/libavdevice/xcbgrab.c
index df8de20459a1..6aa1211d9983 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);
 
-- 
2.1.3



More information about the ffmpeg-devel mailing list