From f12a0e61cc484e8175164303c3c6b92ee53ef942 Mon Sep 17 00:00:00 2001 From: reimar Date: Tue, 21 Aug 2007 12:38:45 +0000 Subject: 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 --- stream/stream_dvd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stream') diff --git a/stream/stream_dvd.c b/stream/stream_dvd.c index aee0f33c78..c94e9090e8 100644 --- a/stream/stream_dvd.c +++ b/stream/stream_dvd.c @@ -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"); -- cgit v1.2.3