You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
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>
This commit is contained in:
committed by
Michael Niedermayer
parent
6153aa2d1e
commit
0ae37e460c
@@ -564,7 +564,7 @@ static void setup_window(AVFormatContext *s)
|
|||||||
uint32_t values[] = { 1,
|
uint32_t values[] = { 1,
|
||||||
XCB_EVENT_MASK_EXPOSURE |
|
XCB_EVENT_MASK_EXPOSURE |
|
||||||
XCB_EVENT_MASK_STRUCTURE_NOTIFY };
|
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);
|
c->window = xcb_generate_id(c->conn);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user