diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-11-17 18:31:26 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-11-17 18:31:26 +0000 |
commit | e0720debf8b81a6d074c6d8e6a8dce179d3da95d (patch) | |
tree | c58954cc538c38f7cb00ceda79ff61cd355ac65e /stream | |
parent | dff474a1ce6137e3f8ac8ea23c7679f1cf7a158f (diff) | |
download | mpv-e0720debf8b81a6d074c6d8e6a8dce179d3da95d.tar.bz2 mpv-e0720debf8b81a6d074c6d8e6a8dce179d3da95d.tar.xz |
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
Diffstat (limited to 'stream')
-rw-r--r-- | stream/stream_dvd.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/stream/stream_dvd.c b/stream/stream_dvd.c index 739857708e..98984c55a1 100644 --- a/stream/stream_dvd.c +++ b/stream/stream_dvd.c @@ -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; } |