changeset 8649:0c258b964b08

fixes (ok, just workarounds) sig11 in playtree/cfgparser's free()
author arpi
date Sun, 29 Dec 2002 22:12:20 +0000
parents aa3a939ad38f
children cf1d4f48aecf
files libmpdemux/open.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/open.c	Sun Dec 29 21:32:06 2002 +0000
+++ b/libmpdemux/open.c	Sun Dec 29 22:12:20 2002 +0000
@@ -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);