brasero r1379 - in trunk: . src



Author: philippr
Date: Tue Oct 14 18:40:12 2008
New Revision: 1379
URL: http://svn.gnome.org/viewvc/brasero?rev=1379&view=rev

Log:
	Small cleanup

	* src/burn-medium-monitor.c (brasero_medium_monitor_get_drive):
	* src/burn-session.c (brasero_burn_session_clean):


Modified:
   trunk/ChangeLog
   trunk/src/burn-medium-monitor.c
   trunk/src/burn-session.c

Modified: trunk/src/burn-medium-monitor.c
==============================================================================
--- trunk/src/burn-medium-monitor.c	(original)
+++ trunk/src/burn-medium-monitor.c	Tue Oct 14 18:40:12 2008
@@ -82,14 +82,11 @@
 	BraseroMediumMonitorPrivate *priv;
 
 	priv = BRASERO_MEDIUM_MONITOR_PRIVATE (self);
-	for (iter = priv->media; iter; iter = iter->next) {
+	for (iter = priv->drives; iter; iter = iter->next) {
 		BraseroDrive *drive;
-		BraseroMedium *medium;
 		const gchar *drive_device;
 
-		medium = iter->data;
-		drive = brasero_medium_get_drive (medium);
-
+		drive = iter->data;
 		drive_device = brasero_drive_get_device (drive);
 		if (drive_device && !strcmp (drive_device, device)) {
 			g_object_ref (drive);

Modified: trunk/src/burn-session.c
==============================================================================
--- trunk/src/burn-session.c	(original)
+++ trunk/src/burn-session.c	Tue Oct 14 18:40:12 2008
@@ -1651,7 +1651,7 @@
 
 	/* NOTE : we don't follow paths as certain files are simply linked */
 	if (g_remove (path)) {
-		BRASERO_BURN_LOG ("Cannot remove file %s", path);
+		BRASERO_BURN_LOG ("Cannot remove file %s (%s)", path, strerror (errno));
 		result = FALSE;
 	}
 



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