summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-08-21 12:38:45 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-08-21 12:38:45 +0000
commitf12a0e61cc484e8175164303c3c6b92ee53ef942 (patch)
tree926707e5952ab7b4a075b46e2a9203c86162eba8 /stream
parentdda3eb4d1f9b1d82e630733554c101244952f39e (diff)
downloadmpv-f12a0e61cc484e8175164303c3c6b92ee53ef942.tar.bz2
mpv-f12a0e61cc484e8175164303c3c6b92ee53ef942.tar.xz
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
Diffstat (limited to 'stream')
-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 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");