[brasero] Add checks for disc flags
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Subject: [brasero] Add checks for disc flags
- Date: Wed, 24 Jun 2009 07:29:58 +0000 (UTC)
commit 383b92e77755a2337720d6656e6cdefc872025d6
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Tue Jun 23 18:20:50 2009 +0200
Add checks for disc flags
Sometimes when things fails (with wodim) it can happen that the disc is flagged as APPENDABLE UNFORMATTED: don't allow it
libbrasero-media/brasero-medium.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/libbrasero-media/brasero-medium.c b/libbrasero-media/brasero-medium.c
index d47c7e6..13671b7 100644
--- a/libbrasero-media/brasero-medium.c
+++ b/libbrasero-media/brasero-medium.c
@@ -2204,6 +2204,12 @@ brasero_medium_get_contents (BraseroMedium *self,
else if (info->status == BRASERO_SCSI_DISC_INCOMPLETE) {
if (!BRASERO_MEDIUM_RANDOM_WRITABLE (priv->info)) {
priv->info |= BRASERO_MEDIUM_APPENDABLE;
+
+ /* This is just to make sure the disc is in a correct
+ * state as I saw some drive being flagged as unformatted
+ * appendable */
+ priv->info &= ~(BRASERO_MEDIUM_UNFORMATTED);
+
BRASERO_MEDIA_LOG ("Appendable media");
priv->first_open_track = BRASERO_FIRST_TRACK_IN_LAST_SESSION (info);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]