[MPlayer-cvslog] r25070 - trunk/stream/stream_dvd.c

reimar subversion at mplayerhq.hu
Sat Nov 17 19:31:26 CET 2007


Author: reimar
Date: Sat Nov 17 19:31:26 2007
New Revision: 25070

Log:
Move the DVD speed factor -> KB/s conversion into the case
branch where it is actually used


Modified:
   trunk/stream/stream_dvd.c

Modified: trunk/stream/stream_dvd.c
==============================================================================
--- trunk/stream/stream_dvd.c	(original)
+++ trunk/stream/stream_dvd.c	Sat Nov 17 19:31:26 2007
@@ -65,10 +65,6 @@ static void dvd_set_speed(char *device, 
 
   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, 
     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;
   }



More information about the MPlayer-cvslog mailing list