brasero r1791 - in trunk: . src
- From: philippr svn gnome org
- To: svn-commits-list gnome org
- Subject: brasero r1791 - in trunk: . src
- Date: Mon, 19 Jan 2009 16:11:43 +0000 (UTC)
Author: philippr
Date: Mon Jan 19 16:11:43 2009
New Revision: 1791
URL: http://svn.gnome.org/viewvc/brasero?rev=1791&view=rev
Log:
2009-01-19 Philippe Rouquier <ykw localhost localdomain>
Fix second part of #568204 â Brasero can't erase DVD+RW and speed issue
Fix speed rounding that caused some slow burning with some media
* src/burn-job.c (brasero_job_get_speed):
Modified:
trunk/ChangeLog
trunk/src/burn-job.c
Modified: trunk/src/burn-job.c
==============================================================================
--- trunk/src/burn-job.c (original)
+++ trunk/src/burn-job.c Mon Jan 19 16:11:43 2009
@@ -34,6 +34,7 @@
#include <unistd.h>
#include <sys/time.h>
#include <sys/resource.h>
+#include <math.h>
#include <glib.h>
#include <glib-object.h>
@@ -53,6 +54,9 @@
#include "brasero-drive.h"
#include "brasero-medium.h"
+/* For nearbyintf ()*/
+#define _ISOC99_SOURCE
+
typedef struct _BraseroJobOutput {
gchar *image;
gchar *toc;
@@ -1613,11 +1617,11 @@
media = brasero_burn_session_get_dest_media (session);
if (media & BRASERO_MEDIUM_DVD)
- *speed = BRASERO_RATE_TO_SPEED_DVD (rate);
+ *speed = nearbyint (BRASERO_RATE_TO_SPEED_DVD (rate));
else if (media & BRASERO_MEDIUM_BD)
- *speed = BRASERO_RATE_TO_SPEED_BD (rate);
+ *speed = nearbyint (BRASERO_RATE_TO_SPEED_BD (rate));
else
- *speed = BRASERO_RATE_TO_SPEED_CD (rate);
+ *speed = nearbyint (BRASERO_RATE_TO_SPEED_CD (rate));
return BRASERO_BURN_OK;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]