brasero r1403 - in trunk: . src/plugins/local-track



Author: philippr
Date: Tue Oct 21 16:20:32 2008
New Revision: 1403
URL: http://svn.gnome.org/viewvc/brasero?rev=1403&view=rev

Log:
	Fix for #547395 â Support for remote filesystems
	Download all directory contents not half of them
	Also if an unreadable cannot be translated drop it

	* src/plugins/local-track/burn-local-image.c
	(brasero_local_track_recursive_transfer),
	(brasero_local_track_thread_finished):


Modified:
   trunk/ChangeLog
   trunk/src/plugins/local-track/burn-local-image.c

Modified: trunk/src/plugins/local-track/burn-local-image.c
==============================================================================
--- trunk/src/plugins/local-track/burn-local-image.c	(original)
+++ trunk/src/plugins/local-track/burn-local-image.c	Tue Oct 21 16:20:32 2008
@@ -255,7 +255,7 @@
 	g_file_enumerator_close (enumerator, priv->cancel, NULL);
 	g_object_unref (enumerator);
 
-	return ((*error) != NULL)? BRASERO_BURN_OK:BRASERO_BURN_ERR;
+	return ((*error) == NULL)? BRASERO_BURN_OK:BRASERO_BURN_ERR;
 }
 
 static BraseroBurnResult
@@ -553,6 +553,7 @@
 	/* make a copy of the tracks instead of modifying them */
 	switch (input.type) {
 	case BRASERO_TRACK_TYPE_DATA: {
+		GSList *next;
 		GSList *grafts;
 		GSList *unreadable;
 
@@ -568,12 +569,15 @@
 
 		/* translate the globally excluded */
 		unreadable = brasero_track_get_data_excluded_source (track, FALSE);
-		for (; unreadable; unreadable = unreadable->next) {
+		for (; unreadable; unreadable = next) {
 			gchar *new_uri;
 
+			next = unreadable->next;
 			new_uri = brasero_local_track_translate_uri (self, unreadable->data);
 			if (new_uri)
 				unreadable->data = new_uri;
+			else
+				unreadable = g_slist_remove (unreadable, unreadable->data);
 		}
 	}
 	break;



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