[MPlayer-cvslog] r27226 - trunk/stream/stream_dvd.c

nicodvb subversion at mplayerhq.hu
Sun Jul 6 20:04:14 CEST 2008


Author: nicodvb
Date: Sun Jul  6 20:04:14 2008
New Revision: 27226

Log:
avoid unnecessary strdup(); patch by Aurel

Modified:
   trunk/stream/stream_dvd.c

Modified: trunk/stream/stream_dvd.c
==============================================================================
--- trunk/stream/stream_dvd.c	(original)
+++ trunk/stream/stream_dvd.c	Sun Jul  6 20:04:14 2008
@@ -790,7 +790,7 @@ static int open_s(stream_t *stream,int m
     else if(dvd_device)
       dvd_device_current = dvd_device;
     else
-      dvd_device_current = strdup(DEFAULT_DVD_DEVICE);
+      dvd_device_current = DEFAULT_DVD_DEVICE;
     dvd_set_speed(dvd_device_current, dvd_speed);
 #if defined(__APPLE__) || defined(__DARWIN__)
     /* Dynamic DVD drive selection on Darwin */



More information about the MPlayer-cvslog mailing list