summaryrefslogtreecommitdiffstats
path: root/stream/stream_dvd.c
diff options
context:
space:
mode:
authornicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-07-06 18:04:14 +0000
committernicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-07-06 18:04:14 +0000
commitefb1379f7216b90c656c71118fae28aaa2eb7e10 (patch)
treecd96a7289f9be0c9bcadb1add2f572e9228572d7 /stream/stream_dvd.c
parent3a7b71bf78bb035cfff0225a86734ed8d0f9ea80 (diff)
downloadmpv-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.c2
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 */