Register x11grab only when it has been enabled.
authorDiego Biurrun <diego@biurrun.de>
Sat, 23 Dec 2006 07:19:56 +0000 (07:19 +0000)
committerDiego Biurrun <diego@biurrun.de>
Sat, 23 Dec 2006 07:19:56 +0000 (07:19 +0000)
Originally committed as revision 7366 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/allformats.c

index 3ef9bc3..042c698 100644 (file)
@@ -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