changeset 7432:8705ce9a9fe9

Enable CDDB support only if the network layer is enabled.
author bertrand
date Tue, 17 Sep 2002 19:52:27 +0000
parents e46eeafcd4df
children f3bcc214a9a1
files libmpdemux/open.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/open.c	Tue Sep 17 19:51:12 2002 +0000
+++ b/libmpdemux/open.c	Tue Sep 17 19:52:27 2002 +0000
@@ -74,8 +74,10 @@
 
 #ifdef HAVE_CDDA
 stream_t* open_cdda(char* dev,char* track);
+#ifdef STREAMING
 stream_t* cddb_open(char* dev,char* track);
 #endif
+#endif
 
 // Open a new stream  (stdin/file/vcd/url)
 
@@ -90,9 +92,11 @@
 #ifdef HAVE_CDDA
 if(filename && strncmp("cdda://",filename,7) == 0)
   return open_cdda(cdrom_device ? cdrom_device : DEFAULT_CDROM_DEVICE,filename+7);
+#ifdef STREAMING
 if(filename && strncmp("cddb://",filename,7) == 0)
   return cddb_open(cdrom_device ? cdrom_device : DEFAULT_CDROM_DEVICE,filename+7);
 #endif
+#endif
 
 //============ Open VideoCD track ==============
 #ifdef HAVE_VCD