brasero r1375 - in trunk: . src/plugins/cdrdao
- From: philippr svn gnome org
- To: svn-commits-list gnome org
- Subject: brasero r1375 - in trunk: . src/plugins/cdrdao
- Date: Mon, 13 Oct 2008 18:45:08 +0000 (UTC)
Author: philippr
Date: Mon Oct 13 18:45:08 2008
New Revision: 1375
URL: http://svn.gnome.org/viewvc/brasero?rev=1375&view=rev
Log:
Fix usage of --simulate option when blanking
* src/plugins/cdrdao/burn-cdrdao.c
(brasero_cdrdao_set_argv_common_rec),
(brasero_cdrdao_set_argv_common), (brasero_cdrdao_set_argv_blank):
Modified:
trunk/ChangeLog
trunk/src/plugins/cdrdao/burn-cdrdao.c
Modified: trunk/src/plugins/cdrdao/burn-cdrdao.c
==============================================================================
--- trunk/src/plugins/cdrdao/burn-cdrdao.c (original)
+++ trunk/src/plugins/cdrdao/burn-cdrdao.c Mon Oct 13 18:45:08 2008
@@ -261,13 +261,16 @@
gchar *speed_str;
guint speed;
+ brasero_job_get_flags (BRASERO_JOB (cdrdao), &flags);
+ if (flags & BRASERO_BURN_FLAG_DUMMY)
+ g_ptr_array_add (argv, g_strdup ("--simulate"));
+
g_ptr_array_add (argv, g_strdup ("--speed"));
brasero_job_get_speed (BRASERO_JOB (cdrdao), &speed);
speed_str = g_strdup_printf ("%d", speed);
g_ptr_array_add (argv, speed_str);
- brasero_job_get_flags (BRASERO_JOB (cdrdao), &flags);
if (flags & BRASERO_BURN_FLAG_OVERBURN)
g_ptr_array_add (argv, g_strdup ("--overburn"));
if (flags & BRASERO_BURN_FLAG_MULTI)
@@ -281,8 +284,6 @@
BraseroBurnFlag flags;
brasero_job_get_flags (BRASERO_JOB (cdrdao), &flags);
- if (flags & BRASERO_BURN_FLAG_DUMMY)
- g_ptr_array_add (argv, g_strdup ("--simulate"));
/* cdrdao manual says it is a similar option to gracetime */
if (flags & BRASERO_BURN_FLAG_NOGRACE)
@@ -375,11 +376,12 @@
brasero_cdrdao_set_argv_device (cdrdao, argv);
brasero_cdrdao_set_argv_common (cdrdao, argv);
+ g_ptr_array_add (argv, g_strdup ("--blank-mode"));
brasero_job_get_flags (BRASERO_JOB (cdrdao), &flags);
- if (!(flags & BRASERO_BURN_FLAG_FAST_BLANK)) {
- g_ptr_array_add (argv, g_strdup ("--blank-mode"));
+ if (!(flags & BRASERO_BURN_FLAG_FAST_BLANK))
g_ptr_array_add (argv, g_strdup ("full"));
- }
+ else
+ g_ptr_array_add (argv, g_strdup ("minimal"));
brasero_job_set_current_action (BRASERO_JOB (cdrdao),
BRASERO_BURN_ACTION_BLANKING,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]