1
mirror of https://github.com/mpv-player/mpv synced 2025-01-20 21:07:29 +01:00

Move the DVD speed factor -> KB/s conversion into the case

branch where it is actually used


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25070 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2007-11-17 18:31:26 +00:00
parent dff474a1ce
commit e0720debf8

View File

@ -65,10 +65,6 @@ static void dvd_set_speed(char *device, unsigned speed)
if (!S_ISBLK(st.st_mode)) return; /* not a block device */
if (speed < 100) { /* speed times 1350KB/s (DVD single speed) */
speed *= 1350;
}
switch (speed) {
case 0: /* don't touch speed setting */
return;
@ -79,6 +75,9 @@ static void dvd_set_speed(char *device, unsigned speed)
mp_msg(MSGT_OPEN, MSGL_INFO, MSGTR_DVDrestoreSpeed);
break;
default: /* limit to <speed> KB/s */
// speed < 100 is multiple of DVD single speed (1350KB/s)
if (speed < 100)
speed *= 1350;
mp_msg(MSGT_OPEN, MSGL_INFO, MSGTR_DVDlimitSpeed, speed);
break;
}