[brasero] Be lenient about some flags when we have to blank the disc before



commit bcdb779d79b093de097b498b41f2bcc5569198f2
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Sun Sep 6 13:38:43 2009 +0200

    Be lenient about some flags when we have to blank the disc before
    This allows to show "leave disc open" with closed CDRW for exampe

 libbrasero-burn/brasero-caps-session.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/libbrasero-burn/brasero-caps-session.c b/libbrasero-burn/brasero-caps-session.c
index 6082bb1..973fa5e 100644
--- a/libbrasero-burn/brasero-caps-session.c
+++ b/libbrasero-burn/brasero-caps-session.c
@@ -1340,8 +1340,14 @@ brasero_medium_supported_flags (BraseroMedium *medium,
 	else if (!brasero_medium_can_use_dummy_for_tao (medium))
 		(*supported_flags) &= ~BRASERO_BURN_FLAG_DUMMY;
 
-	if (!BRASERO_MEDIUM_RANDOM_WRITABLE (media)
-	&& !brasero_medium_can_use_tao (medium)) {
+	/* The following is only true if we won't _have_ to blank
+	 * the disc since a CLOSED disc is not able for tao/sao.
+	 * so if BLANK_BEFORE_RIGHT is TRUE then we leave 
+	 * the benefit of the doubt, but flags should be rechecked
+	 * after the drive was blanked. */
+	if (((*compulsory_flags) & BRASERO_BURN_FLAG_BLANK_BEFORE_WRITE) == 0
+	&&  !BRASERO_MEDIUM_RANDOM_WRITABLE (media)
+	&&  !brasero_medium_can_use_tao (medium)) {
 		(*supported_flags) &= ~BRASERO_BURN_FLAG_MULTI;
 
 		if (brasero_medium_can_use_sao (medium))



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