summaryrefslogtreecommitdiffstats
path: root/libavdevice
diff options
context:
space:
mode:
authorBoris Reisig <voip@boris.ca>2014-11-24 02:00:05 -0600
committerMichael Niedermayer <michaelni@gmx.at>2014-11-24 16:57:47 +0100
commit54170a33c2c97b0f50347f57e8f0f2ea681dca1d (patch)
treecce87bb222c28f58b6189b1cbdd538b17154368d /libavdevice
parent1d242f9816ac8e17a74d2f77bd903fa8076d267a (diff)
downloadffmpeg-streaming-54170a33c2c97b0f50347f57e8f0f2ea681dca1d.zip
ffmpeg-streaming-54170a33c2c97b0f50347f57e8f0f2ea681dca1d.tar.gz
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 <michaelni@gmx.at>
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/xcbgrab.c6
1 files changed, 5 insertions, 1 deletions
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 <xcb/shm.h>
#endif
+#if CONFIG_LIBXCB_SHAPE
+#include <xcb/shape.h>
+#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,
OpenPOWER on IntegriCloud