brasero r1409 - in trunk: . src/plugins/checksum



Author: philippr
Date: Wed Oct 22 19:07:07 2008
New Revision: 1409
URL: http://svn.gnome.org/viewvc/brasero?rev=1409&view=rev

Log:
	Don\'t create a new checksum if there is one already

	* src/plugins/checksum/burn-checksum-image.c
	(brasero_checksum_image_start):


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

Modified: trunk/src/plugins/checksum/burn-checksum-image.c
==============================================================================
--- trunk/src/plugins/checksum/burn-checksum-image.c	(original)
+++ trunk/src/plugins/checksum/burn-checksum-image.c	Wed Oct 22 19:07:07 2008
@@ -563,6 +563,7 @@
 			      GError **error)
 {
 	BraseroChecksumImagePrivate *priv;
+	BraseroTrack *track = NULL;
 	BraseroJobAction action;
 
 	brasero_job_get_action (job, &action);
@@ -578,6 +579,15 @@
 		return BRASERO_BURN_NOT_RUNNING;
 	}
 
+	brasero_job_get_current_track (job, &track);
+
+	if (action == BRASERO_JOB_ACTION_IMAGE
+	&&  brasero_track_get_checksum_type (track) != BRASERO_CHECKSUM_NONE) {
+		BRASERO_JOB_LOG (job, "There is a checksum already");
+		/* if there is a checksum already, if so no need to redo one */
+		return BRASERO_BURN_NOT_RUNNING;
+	}
+
 	/* we start a thread for the exploration of the graft points */
 	priv = BRASERO_CHECKSUM_IMAGE_PRIVATE (job);
 	priv->thread = g_thread_create (brasero_checksum_image_thread,



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