mirror of
https://github.com/mpv-player/mpv
synced 2024-12-27 09:32:40 +00:00
Set DVD speed earlier to avoid drive spinup during open
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24114 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
dda3eb4d1f
commit
f12a0e61cc
@ -769,6 +769,7 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) {
|
||||
* Open the disc.
|
||||
*/
|
||||
if(!dvd_device) dvd_device=strdup(DEFAULT_DVD_DEVICE);
|
||||
dvd_set_speed(dvd_device, dvd_speed);
|
||||
#ifdef SYS_DARWIN
|
||||
/* Dynamic DVD drive selection on Darwin */
|
||||
if(!strcmp(dvd_device, "/dev/rdiskN")) {
|
||||
@ -810,7 +811,6 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) {
|
||||
return STREAM_UNSUPORTED;
|
||||
}
|
||||
}
|
||||
dvd_set_speed(dvd_device, dvd_speed);
|
||||
|
||||
mp_msg(MSGT_OPEN,MSGL_V,"Reading disc structure, please wait...\n");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user