summaryrefslogtreecommitdiffstats
path: root/libmpdemux/open.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmpdemux/open.c')
-rw-r--r--libmpdemux/open.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libmpdemux/open.c b/libmpdemux/open.c
index c515f6c4c0..98491a1e07 100644
--- a/libmpdemux/open.c
+++ b/libmpdemux/open.c
@@ -74,8 +74,10 @@ extern int stream_open_tv(stream_t *stream, tvi_handle_t *tvh);
#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 @@ int bsize = VCD_SECTOR_SIZE;
#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