From 54170a33c2c97b0f50347f57e8f0f2ea681dca1d Mon Sep 17 00:00:00 2001 From: Boris Reisig Date: Mon, 24 Nov 2014 02:00:05 -0600 Subject: avdevice/xcbgrab: fix undefined reference to xcb_shape_rectangles in xcbgrab.c works with (--enable-libxcb-shape) and without (--disable-libxcb-shape) now. Signed-off-by: Michael Niedermayer --- libavdevice/xcbgrab.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libavdevice/xcbgrab.c') diff --git a/libavdevice/xcbgrab.c b/libavdevice/xcbgrab.c index 1657b7d..df8de20 100644 --- a/libavdevice/xcbgrab.c +++ b/libavdevice/xcbgrab.c @@ -33,6 +33,10 @@ #include #endif +#if CONFIG_LIBXCB_SHAPE +#include +#endif + #include "libavformat/avformat.h" #include "libavformat/internal.h" @@ -576,7 +580,7 @@ static void setup_window(AVFormatContext *s) XCB_COPY_FROM_PARENT, mask, values); -#if XCB_SHAPE_RECTANGLES +#if CONFIG_LIBXCB_SHAPE xcb_shape_rectangles(c->conn, XCB_SHAPE_SO_SUBTRACT, XCB_SHAPE_SK_BOUNDING, XCB_CLIP_ORDERING_UNSORTED, c->window, -- cgit v1.1