[brasero] Don't set DAO for DVDs
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Subject: [brasero] Don't set DAO for DVDs
- Date: Wed, 24 Jun 2009 07:29:53 +0000 (UTC)
commit 00af68e556bc8d2dfbab093e629f60ce9aaef66d
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Tue Jun 23 18:03:43 2009 +0200
Don't set DAO for DVDs
DAO doesn't help for anything and leads to have wodim chosen instead of growisofs which we don't want
Also remove a debug statement
libbrasero-burn/brasero-session-cfg.c | 7 +++++--
libbrasero-burn/burn-job.c | 1 -
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/libbrasero-burn/brasero-session-cfg.c b/libbrasero-burn/brasero-session-cfg.c
index 0a37718..089b7be 100644
--- a/libbrasero-burn/brasero-session-cfg.c
+++ b/libbrasero-burn/brasero-session-cfg.c
@@ -539,8 +539,11 @@ brasero_session_cfg_set_drive_properties_flags (BraseroSessionCfg *self,
}
/* When copying with same drive don't set write mode, it'll be set later */
- if (!brasero_burn_session_same_src_dest_drive (BRASERO_BURN_SESSION (self))) {
- /* use DAO whenever it's possible */
+ if (!brasero_burn_session_same_src_dest_drive (BRASERO_BURN_SESSION (self))
+ && !(media & BRASERO_MEDIUM_DVD)) {
+ /* use DAO whenever it's possible except for DVDs otherwise
+ * wodime which claims to support it will be used by default
+ * instead of say growisofs. */
if (priv->supported & BRASERO_BURN_FLAG_DAO) {
brasero_burn_session_add_flag (BRASERO_BURN_SESSION (self), BRASERO_BURN_FLAG_DAO);
diff --git a/libbrasero-burn/burn-job.c b/libbrasero-burn/burn-job.c
index a38e9da..4eaade6 100644
--- a/libbrasero-burn/burn-job.c
+++ b/libbrasero-burn/burn-job.c
@@ -1504,7 +1504,6 @@ brasero_job_get_device (BraseroJob *self, gchar **device)
session = brasero_task_ctx_get_session (priv->ctx);
drive = brasero_burn_session_get_burner (session);
- g_print ("DRIVE %p %s\n", drive, brasero_drive_get_device (drive));
path = brasero_drive_get_device (drive);
*device = g_strdup (path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]