diff options
author | albeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-06-21 22:52:01 +0000 |
---|---|---|
committer | albeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-06-21 22:52:01 +0000 |
commit | 9fc6c93c8b10b28aa810e6b242af96074acd37a4 (patch) | |
tree | 662885ace6a949a98134f3f21278b1e847dd7144 /libmpdemux/open.c | |
parent | 1aa8394fa488f700578b5cf6fee5898918a27556 (diff) | |
download | mpv-9fc6c93c8b10b28aa810e6b242af96074acd37a4.tar.bz2 mpv-9fc6c93c8b10b28aa810e6b242af96074acd37a4.tar.xz |
filename can be NULL. Fix the conflict between cdda and dvdnav.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6491 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/open.c')
-rw-r--r-- | libmpdemux/open.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpdemux/open.c b/libmpdemux/open.c index 5fa7a316b2..a57861991f 100644 --- a/libmpdemux/open.c +++ b/libmpdemux/open.c @@ -86,9 +86,9 @@ int bsize = VCD_SECTOR_SIZE; #endif #ifdef HAVE_CDDA -if(strncmp("cdda://",filename,7) == 0) +if(filename && strncmp("cdda://",filename,7) == 0) return open_cdda(cdrom_device ? cdrom_device : DEFAULT_CDROM_DEVICE,filename+7); -if(strncmp("cddb://",filename,7) == 0) +if(filename && strncmp("cddb://",filename,7) == 0) return cddb_open(cdrom_device ? cdrom_device : DEFAULT_CDROM_DEVICE,filename+7); #endif |