From b7e670cfbdd1a51f8728d61a2cbf86e064ce2dab Mon Sep 17 00:00:00 2001
From: diego <diego@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Date: Sat, 23 Dec 2006 07:19:56 +0000
Subject: [PATCH] Register x11grab only when it has been enabled.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7366 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
---
 libavformat/allformats.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/allformats.c b/libavformat/allformats.c
index 3ef9bc323..042c6982b 100644
--- a/libavformat/allformats.c
+++ b/libavformat/allformats.c
@@ -166,7 +166,9 @@ void av_register_all(void)
     REGISTER_DEMUXER (WSAUD, wsaud);
     REGISTER_DEMUXER (WSVQA, wsvqa);
     REGISTER_DEMUXER (WV, wv);
+#ifdef CONFIG_X11GRAB
     REGISTER_DEMUXER (X11_GRAB_DEVICE, x11_grab_device);
+#endif
     REGISTER_MUXDEMUX(YUV4MPEGPIPE, yuv4mpegpipe);
 
 #ifdef CONFIG_PROTOCOLS
-- 
2.25.4