brasero r1054 - in trunk: . src



Author: philippr
Date: Wed Aug  6 09:14:08 2008
New Revision: 1054
URL: http://svn.gnome.org/viewvc/brasero?rev=1054&view=rev

Log:
	Use the right fact correcting the confusion between KB and KiB
	(rates returned by drives are in KB _NOT_ in Kib)

	* src/burn-medium.c (brasero_medium_get_write_speeds),
	(brasero_medium_track_get_info):
	* src/burn-medium.h:

Modified:
   trunk/ChangeLog
   trunk/src/burn-medium.c
   trunk/src/burn-medium.h

Modified: trunk/src/burn-medium.c
==============================================================================
--- trunk/src/burn-medium.c	(original)
+++ trunk/src/burn-medium.c	Wed Aug  6 09:14:08 2008
@@ -374,7 +374,7 @@
 	BraseroMediumPrivate *priv;
 
 	priv = BRASERO_MEDIUM_PRIVATE (medium);
-	return priv->max_wrt * 1024;
+	return priv->max_wrt * 1000;
 }
 
 gint64 *
@@ -390,8 +390,10 @@
 	while (priv->wr_speeds [max] != 0) max ++;
 
 	speeds = g_new0 (gint64, max + 1);
+
+	/* NOTE: about the following, it's not KiB here but KB */
 	for (i = 0; i < max; i ++)
-		speeds [i] = priv->wr_speeds [i] * 1024;
+		speeds [i] = priv->wr_speeds [i] * 1000;
 
 	return speeds;
 }
@@ -1096,8 +1098,10 @@
 
 	/* NOTE: DVD+RW, DVD-RW (restricted overwrite) never reach this function */
 
-	if (track_info.next_wrt_address_valid)
+	if (track_info.next_wrt_address_valid) {
 		priv->next_wr_add = BRASERO_GET_32 (track_info.next_wrt_address);
+		BRASERO_BURN_LOG ("Next Writable Address is %d", priv->next_wr_add);
+	}
 
 	BRASERO_BURN_LOG ("Track %i (session %i): type = %i start = %llu size = %llu",
 			  track_num,

Modified: trunk/src/burn-medium.h
==============================================================================
--- trunk/src/burn-medium.h	(original)
+++ trunk/src/burn-medium.h	Wed Aug  6 09:14:08 2008
@@ -34,7 +34,7 @@
  * Source Wikipedia.com =)
  * Apparently most drives return rates that should be used with Audio factor
  */
-#define CD_RATE 176435
+#define CD_RATE 176400
 #define DVD_RATE 1385000
 
 typedef struct _BraseroDrive BraseroDrive;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]