summaryrefslogtreecommitdiffstats
path: root/libavdevice/xcbgrab.c
diff options
context:
space:
mode:
authorDaniel Moran <dijumx@gmail.com>2014-12-06 23:48:13 +0000
committerMichael Niedermayer <michaelni@gmx.at>2014-12-07 16:13:30 +0100
commit0ae37e460c345a4c76e28256af56931e00c94cb5 (patch)
tree167bbb30a91599e84400939086c211aa91a740d0 /libavdevice/xcbgrab.c
parent6153aa2d1e41212672dfd5543a7bda9079a0160c (diff)
downloadffmpeg-streaming-0ae37e460c345a4c76e28256af56931e00c94cb5.zip
ffmpeg-streaming-0ae37e460c345a4c76e28256af56931e00c94cb5.tar.gz
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 <michaelni@gmx.at>
Diffstat (limited to 'libavdevice/xcbgrab.c')
-rw-r--r--libavdevice/xcbgrab.c2
1 files changed, 1 insertions, 1 deletions
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);
OpenPOWER on IntegriCloud