diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2014-10-30 10:05:45 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2014-10-30 10:05:45 +0100 |
commit | 8c0ae9015a2bd8b3f4f92c35570e592e7fdeaef0 (patch) | |
tree | 2031b5285bdbe023313dd1c5811ac3785eb99cdb /libavdevice | |
parent | 0e89d006d87a523db45878c7b3f1bcc8ba1234ed (diff) | |
download | ffmpeg-streaming-8c0ae9015a2bd8b3f4f92c35570e592e7fdeaef0.zip ffmpeg-streaming-8c0ae9015a2bd8b3f4f92c35570e592e7fdeaef0.tar.gz |
Fix xcbgrab build if shm is not available.
Diffstat (limited to 'libavdevice')
-rw-r--r-- | libavdevice/xcbgrab.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavdevice/xcbgrab.c b/libavdevice/xcbgrab.c index 4909588..c378002 100644 --- a/libavdevice/xcbgrab.c +++ b/libavdevice/xcbgrab.c @@ -47,7 +47,9 @@ typedef struct XCBGrabContext { xcb_connection_t *conn; xcb_screen_t *screen; xcb_window_t window; +#if CONFIG_LIBXCB_SHM xcb_shm_seg_t segment; +#endif int64_t time_frame; AVRational time_base; @@ -611,7 +613,9 @@ static av_cold int xcbgrab_read_header(AVFormatContext *s) return AVERROR(EIO); } +#if CONFIG_LIBXCB_SHM c->segment = xcb_generate_id(c->conn); +#endif ret = create_stream(s); |