[brasero] Small change to possibly (??) improve drive reprobing
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [brasero] Small change to possibly (??) improve drive reprobing
- Date: Sun, 2 Aug 2009 11:42:56 +0000 (UTC)
commit 40261584dec29556f9e3f0c2a44d6807008a3065
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Sat Aug 1 11:03:50 2009 +0200
Small change to possibly (??) improve drive reprobing
libbrasero-burn/brasero-burn.c | 11 +----------
libbrasero-media/brasero-drive.c | 6 ++++++
2 files changed, 7 insertions(+), 10 deletions(-)
---
diff --git a/libbrasero-burn/brasero-burn.c b/libbrasero-burn/brasero-burn.c
index 6f4dffb..f0f6529 100644
--- a/libbrasero-burn/brasero-burn.c
+++ b/libbrasero-burn/brasero-burn.c
@@ -1113,17 +1113,8 @@ brasero_burn_unlock_dest_media (BraseroBurn *burn,
brasero_drive_unlock (priv->dest);
if (!BRASERO_BURN_SESSION_EJECT (priv->session)) {
- if (priv->dest) {
- GDrive *gdrive;
-
- gdrive = brasero_drive_get_gdrive (priv->dest);
-
- /* reprobe the contents of the drive system wide */
- g_drive_poll_for_media (gdrive, NULL, NULL, NULL);
- g_object_unref (gdrive);
-
+ if (priv->dest)
brasero_drive_reprobe (priv->dest);
- }
}
else
brasero_drive_eject (priv->dest, FALSE, error);
diff --git a/libbrasero-media/brasero-drive.c b/libbrasero-media/brasero-drive.c
index 27281b0..78521cc 100644
--- a/libbrasero-media/brasero-drive.c
+++ b/libbrasero-media/brasero-drive.c
@@ -740,6 +740,12 @@ brasero_drive_reprobe (BraseroDrive *drive)
g_return_if_fail (BRASERO_IS_DRIVE (drive));
priv = BRASERO_DRIVE_PRIVATE (drive);
+
+ if (priv->gdrive) {
+ /* reprobe the contents of the drive system wide */
+ g_drive_poll_for_media (priv->gdrive, NULL, NULL, NULL);
+ }
+
if (!priv->medium)
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]