mirror of https://github.com/mpv-player/mpv
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:
parent
1aa8394fa4
commit
9fc6c93c8b
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue