diff options
author | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-07-06 18:04:14 +0000 |
---|---|---|
committer | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-07-06 18:04:14 +0000 |
commit | efb1379f7216b90c656c71118fae28aaa2eb7e10 (patch) | |
tree | cd96a7289f9be0c9bcadb1add2f572e9228572d7 /stream/stream_dvd.c | |
parent | 3a7b71bf78bb035cfff0225a86734ed8d0f9ea80 (diff) | |
download | mpv-efb1379f7216b90c656c71118fae28aaa2eb7e10.tar.bz2 mpv-efb1379f7216b90c656c71118fae28aaa2eb7e10.tar.xz |
avoid unnecessary strdup(); patch by Aurel
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27226 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/stream_dvd.c')
-rw-r--r-- | stream/stream_dvd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/stream_dvd.c b/stream/stream_dvd.c index c9af10d517..fa80e9b64b 100644 --- a/stream/stream_dvd.c +++ b/stream/stream_dvd.c @@ -790,7 +790,7 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) { 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 */ |