[brasero] When we probed the inside of a drive and found a medium while we were already having one make sure w



commit e3f669bb8379f3459e07e5df9c750b58a8cb2d69
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Tue Sep 29 20:22:05 2009 +0200

    When we probed the inside of a drive and found a medium while we were already having one make sure we mark it as probed

 libbrasero-media/brasero-drive.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/libbrasero-media/brasero-drive.c b/libbrasero-media/brasero-drive.c
index 3d66e76..514933b 100644
--- a/libbrasero-media/brasero-drive.c
+++ b/libbrasero-media/brasero-drive.c
@@ -796,8 +796,11 @@ brasero_drive_probed_inside (gpointer data)
 	g_mutex_unlock (priv->mutex);
 
 	if (priv->has_medium) {
-		if (priv->medium)
+		if (priv->medium) {
+			priv->probed = TRUE;
+			BRASERO_MEDIA_LOG ("Already a medium. Skipping");
 			return FALSE;
+		}
 
 		BRASERO_MEDIA_LOG ("Probing new medium");
 



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