brasero r1768 - in trunk: . src
- From: philippr svn gnome org
- To: svn-commits-list gnome org
- Subject: brasero r1768 - in trunk: . src
- Date: Sat, 17 Jan 2009 12:51:27 +0000 (UTC)
Author: philippr
Date: Sat Jan 17 12:51:26 2009
New Revision: 1768
URL: http://svn.gnome.org/viewvc/brasero?rev=1768&view=rev
Log:
2009-01-17 Philippe Rouquier <ykw localhost localdomain>
Fix for #567582 â Fails to burn a DVD iso
When using wodim only DVD+RWs needs prior formatting, a bug prevented that
* src/burn-caps.c (brasero_burn_caps_get_flags_for_medium):
Modified:
trunk/ChangeLog
trunk/src/burn-caps.c
Modified: trunk/src/burn-caps.c
==============================================================================
--- trunk/src/burn-caps.c (original)
+++ trunk/src/burn-caps.c Sat Jan 17 12:51:26 2009
@@ -99,6 +99,14 @@
brasero_medium_supported_flags (BraseroMedium *self,
BraseroBurnFlag flags);
+/**
+ * This macro is used to determine whether or not blanking could change anything
+ * for the medium so that we can write to it.
+ */
+#define BRASERO_BURN_CAPS_SHOULD_BLANK(media_MACRO, flags_MACRO) \
+ ((media_MACRO & BRASERO_MEDIUM_UNFORMATTED) || \
+ ((media_MACRO & (BRASERO_MEDIUM_HAS_AUDIO|BRASERO_MEDIUM_HAS_DATA)) && \
+ (flags_MACRO & (BRASERO_BURN_FLAG_MERGE|BRASERO_BURN_FLAG_APPEND)) == FALSE))
#define BRASERO_BURN_CAPS_NOT_SUPPORTED_LOG(session) \
{ \
@@ -2458,9 +2466,10 @@
supported_flags,
compulsory_flags);
- /* see if we can add BRASERO_BURN_FLAG_BLANK_BEFORE_WRITE */
- if ((media & (BRASERO_MEDIUM_HAS_AUDIO|BRASERO_MEDIUM_HAS_DATA))
- && !(session_flags & (BRASERO_BURN_FLAG_MERGE|BRASERO_BURN_FLAG_APPEND))
+ /* see if we can add BRASERO_BURN_FLAG_BLANK_BEFORE_WRITE. Add it when:
+ * - media can be blanked, it has audio or data and we're not merging
+ * - media is not formatted and it can be blanked/formatted */
+ if (BRASERO_BURN_CAPS_SHOULD_BLANK (media, session_flags)
&& brasero_burn_caps_can_blank_real (self, media, session_flags) == BRASERO_BURN_OK)
(*supported_flags) |= BRASERO_BURN_FLAG_BLANK_BEFORE_WRITE;
else if (session_flags & BRASERO_BURN_FLAG_BLANK_BEFORE_WRITE)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]