[brasero] Make sure that a medium identified as file is indeed one and not a medium that failed to initialize
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Subject: [brasero] Make sure that a medium identified as file is indeed one and not a medium that failed to initialize
- Date: Sun, 26 Jul 2009 12:19:54 +0000 (UTC)
commit da4dc8c6f64b03abc6c7f059328e704981ea35fa
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Wed Jul 22 16:04:21 2009 +0200
Make sure that a medium identified as file is indeed one and not a medium that failed to initialize
libbrasero-media/brasero-medium-monitor.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/libbrasero-media/brasero-medium-monitor.c b/libbrasero-media/brasero-medium-monitor.c
index eca380b..8ab6793 100644
--- a/libbrasero-media/brasero-medium-monitor.c
+++ b/libbrasero-media/brasero-medium-monitor.c
@@ -273,7 +273,15 @@ brasero_medium_monitor_get_media (BraseroMediumMonitor *monitor,
}
if (type & BRASERO_MEDIA_TYPE_FILE) {
- if (brasero_medium_get_status (medium) & BRASERO_MEDIUM_FILE) {
+ BraseroDrive *drive;
+
+ /* make sure the drive is indeed a fake one
+ * since it can happen that some medium did
+ * not properly carry out their initialization
+ * and are flagged as BRASERO_MEDIUM_FILE
+ * whereas they are not */
+ drive = brasero_medium_get_drive (medium);
+ if (brasero_drive_is_fake (drive)) {
list = g_slist_prepend (list, medium);
g_object_ref (medium);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]