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
This commit is contained in:
albeu 2002-06-21 22:52:01 +00:00
parent 1aa8394fa4
commit 9fc6c93c8b
1 changed files with 2 additions and 2 deletions

View File

@ -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