[brasero] Make the ChecksumImage plugin work again



commit ba10016066995870aaaee69015b72c4bf93e8e4a
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Sat Jul 18 21:07:43 2009 +0200

    Make the ChecksumImage plugin work again
    We were checking the GObject type of the original track not the input type of the plugin

 plugins/checksum/burn-checksum-image.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/plugins/checksum/burn-checksum-image.c b/plugins/checksum/burn-checksum-image.c
index 6dd709a..82f9771 100644
--- a/plugins/checksum/burn-checksum-image.c
+++ b/plugins/checksum/burn-checksum-image.c
@@ -562,10 +562,17 @@ brasero_checksum_image_thread (gpointer data)
 			result = BRASERO_BURN_ERR;
 	}
 	else if (action == BRASERO_JOB_ACTION_IMAGE) {
-		if (BRASERO_IS_TRACK_IMAGE (track))
+		BraseroTrackType *input;
+
+		input = brasero_track_type_new ();
+		brasero_job_get_input_type (BRASERO_JOB (self), input);
+
+		if (brasero_track_type_get_has_image (input))
 			result = brasero_checksum_image_image_and_checksum (self, &error);
 		else
 			result = BRASERO_BURN_ERR;
+
+		brasero_track_type_free (input);
 	}
 
 	if (result != BRASERO_BURN_CANCEL) {



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