On 04/02/15 04:57, Sean McGovern wrote:
From: Carl Eugen Hoyos <[email protected]>

---
  libavdevice/xcbgrab.c |    4 ++++
  1 file changed, 4 insertions(+)

diff --git a/libavdevice/xcbgrab.c b/libavdevice/xcbgrab.c
index 161bd03..0cbfd4f 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;
@@ -614,7 +616,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);


Sounds a good idea, but would be better not scatter the CONFIG_LIBXCB_SHM ifdefs that much, once I have time I'll rework it.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to