diff options
author | albeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-01-17 20:40:07 +0000 |
---|---|---|
committer | albeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-01-17 20:40:07 +0000 |
commit | 49b306a165d3df3aa8eb450613d0a00643bbb68d (patch) | |
tree | 2f432d8d90c79e6994040a64d8431b5014596318 /libmpdemux/open.c | |
parent | c7c0014cb810eeee6afa4f0fc7510f995a221ae2 (diff) | |
download | mpv-49b306a165d3df3aa8eb450613d0a00643bbb68d.tar.bz2 mpv-49b306a165d3df3aa8eb450613d0a00643bbb68d.tar.xz |
Change to use cdrom-device and dvd-device options needed for DVD/TV/VCD
integration in playlist
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4223 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/open.c')
-rw-r--r-- | libmpdemux/open.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/libmpdemux/open.c b/libmpdemux/open.c index 7af6221f3b..8b135ac997 100644 --- a/libmpdemux/open.c +++ b/libmpdemux/open.c @@ -25,6 +25,8 @@ static URL_t* url; int dvd_title=0; int dvd_chapter=1; int dvd_angle=1; +char* dvd_device=NULL; +char* cdrom_device=NULL; #ifdef USE_DVDREAD @@ -78,9 +80,9 @@ int bsize = VCD_SECTOR_SIZE; #ifdef HAVE_VCD if(vcd_track){ int ret,ret2; - if(!filename) filename=DEFAULT_CDROM_DEVICE; - f=open(filename,O_RDONLY); - if(f<0){ mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_CdDevNotfound,filename);return NULL; } + if(!cdrom_device) cdrom_device=DEFAULT_CDROM_DEVICE; + f=open(cdrom_device,O_RDONLY); + if(f<0){ mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_CdDevNotfound,cdrom_device);return NULL; } vcd_read_toc(f); ret2=vcd_get_track_end(f,vcd_track); if(ret2<0){ mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_ErrTrackSelect " (get)\n");return NULL;} @@ -117,10 +119,10 @@ if(dvd_title){ /** * Open the disc. */ - if(!filename) filename=DEFAULT_DVD_DEVICE; - dvd = DVDOpen(filename); + if(!dvd_device) dvd_device=DEFAULT_DVD_DEVICE; + dvd = DVDOpen(dvd_device); if( !dvd ) { - mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_CantOpenDVD,filename); + mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_CantOpenDVD,dvd_device); return NULL; } |