[Mplayer-cvslog] CVS: main/libmpdemux open.c,1.64,1.65

Arpi of Ize arpi at mplayerhq.hu
Sun Dec 29 23:12:35 CET 2002


Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv21353

Modified Files:
	open.c 
Log Message:
fixes (ok, just workarounds) sig11 in playtree/cfgparser's free()


Index: open.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/open.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -r1.64 -r1.65
--- open.c	22 Dec 2002 21:01:01 -0000	1.64
+++ open.c	29 Dec 2002 22:12:20 -0000	1.65
@@ -141,7 +141,7 @@
 #ifdef HAVE_VCD
 if(vcd_track){
   int ret,ret2;
-  if(!cdrom_device) cdrom_device=DEFAULT_CDROM_DEVICE;
+  if(!cdrom_device) cdrom_device=strdup(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);
@@ -197,7 +197,7 @@
     /**
      * Open the disc.
      */
-    if(!dvd_device) dvd_device=DEFAULT_DVD_DEVICE;
+    if(!dvd_device) dvd_device=strdup(DEFAULT_DVD_DEVICE);
     dvd = DVDOpen(dvd_device);
     if( !dvd ) {
         mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_CantOpenDVD,dvd_device);




More information about the MPlayer-cvslog mailing list