mirror of
https://github.com/mpv-player/mpv
synced 2024-12-29 02:22:19 +00:00
avoid unnecessary strdup(); patch by Aurel
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27226 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
3a7b71bf78
commit
efb1379f72
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user