summaryrefslogtreecommitdiff
path: root/libavdevice
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2014-10-30 10:22:34 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2014-10-30 10:22:34 +0100
commit792f0f20456cc24f1f1b9ee445e50737d65e38df (patch)
tree8a930424d36952769f1922f4cc4f6cb10a308aeb /libavdevice
parent8c0ae9015a2bd8b3f4f92c35570e592e7fdeaef0 (diff)
Fix compilation of xcbgrab if xcb/shape.h is not available.
Old versions of libxcb do not provide xcb_shape_rectangles(). The issue can be fixed differently but this small change fixes some fate platforms and a user reported compilation problem. Reported and tested by trac user kevmitch. Fixes ticket #4067.
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/xcbgrab.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavdevice/xcbgrab.c b/libavdevice/xcbgrab.c
index c3780028a3..b162763bac 100644
--- a/libavdevice/xcbgrab.c
+++ b/libavdevice/xcbgrab.c
@@ -580,11 +580,13 @@ static void setup_window(AVFormatContext *s)
XCB_COPY_FROM_PARENT,
mask, values);
+#if XCB_SHAPE_RECTANGLES
xcb_shape_rectangles(c->conn, XCB_SHAPE_SO_SUBTRACT,
XCB_SHAPE_SK_BOUNDING, XCB_CLIP_ORDERING_UNSORTED,
c->window,
c->region_border, c->region_border,
1, &rect);
+#endif
xcb_map_window(c->conn, c->window);