[Mplayer-cvslog] CVS: main/libmpdemux open.c,1.30,1.31
Alban Bedel CVS
albeu at mplayer.dev.hu
Thu Jan 17 21:40:12 CET 2002
Update of /cvsroot/mplayer/main/libmpdemux
In directory mplayer:/var/tmp.root/cvs-serv19297/libmpdemux
Modified Files:
open.c
Log Message:
Change to use cdrom-device and dvd-device options needed for DVD/TV/VCD
integration in playlist
Index: open.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/open.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- open.c 14 Jan 2002 06:44:30 -0000 1.30
+++ open.c 17 Jan 2002 20:40:07 -0000 1.31
@@ -25,6 +25,8 @@
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 @@
#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 @@
/**
* 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;
}
More information about the MPlayer-cvslog
mailing list