[Goodies-commits] r6046 - xfburn/trunk/xfburn

David Mohr squisher at xfce.org
Mon Nov 10 04:51:35 CET 2008


Author: squisher
Date: 2008-11-10 03:51:35 +0000 (Mon, 10 Nov 2008)
New Revision: 6046

Modified:
   xfburn/trunk/xfburn/xfburn-perform-burn.c
Log:
Properly check if the burn run succeeded

Modified: xfburn/trunk/xfburn/xfburn-perform-burn.c
===================================================================
--- xfburn/trunk/xfburn/xfburn-perform-burn.c	2008-11-10 03:48:57 UTC (rev 6045)
+++ xfburn/trunk/xfburn/xfburn-perform-burn.c	2008-11-10 03:51:35 UTC (rev 6046)
@@ -58,7 +58,6 @@
   int factor;
 
   int ret;
-  gboolean error = FALSE;
   int error_code;
   char msg_text[BURN_MSGS_MESSAGE_LEN];
   int os_errno;
@@ -267,7 +266,6 @@
   /* check the libburn message queue for errors */
   while ((ret = burn_msgs_obtain ("FAILURE", &error_code, msg_text, &os_errno, severity)) == 1) {
     g_warning ("[%s] %d: %s (%d)", severity, error_code, msg_text, os_errno);
-    error = TRUE;
   }
 #ifdef DEBUG
   while ((ret = burn_msgs_obtain ("ALL", &error_code, msg_text, &os_errno, severity)) == 1) {
@@ -281,7 +279,7 @@
   percent = (gdouble) progress.buffer_min_fill / (gdouble) progress.buffer_capacity;
   xfburn_progress_dialog_set_buffer_bar_min_fill (XFBURN_PROGRESS_DIALOG (dialog_progress), percent);
 
-  if (G_LIKELY (!error)) {
+  if (G_LIKELY (burn_drive_wrote_well (drive))) {
     final_message = _("Done");
     final_status = XFBURN_PROGRESS_DIALOG_STATUS_COMPLETED;
   } else {




More information about the Goodies-commits mailing list