# HG changeset patch # User reimar # Date 1187699925 0 # Node ID c89888cdfcd338c735a6004acfc709665abb6024 # Parent e0b1c50aa9bd52749dd0cb2d2857d8531a7a2342 Set DVD speed earlier to avoid drive spinup during open diff -r e0b1c50aa9bd -r c89888cdfcd3 stream/stream_dvd.c --- a/stream/stream_dvd.c Tue Aug 21 07:27:05 2007 +0000 +++ b/stream/stream_dvd.c Tue Aug 21 12:38:45 2007 +0000 @@ -769,6 +769,7 @@ * 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 @@ return STREAM_UNSUPORTED; } } - dvd_set_speed(dvd_device, dvd_speed); mp_msg(MSGT_OPEN,MSGL_V,"Reading disc structure, please wait...\n");