[brasero] Fix progress report when checksuming a burn
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [brasero] Fix progress report when checksuming a burn
- Date: Mon, 26 Oct 2009 13:49:21 +0000 (UTC)
commit 471955790c7b94c0e149c93bab6826ff07c95e04
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Mon Oct 26 14:47:11 2009 +0100
Fix progress report when checksuming a burn
libbrasero-burn/burn-task-ctx.c | 6 +++---
plugins/checksum/burn-checksum-image.c | 2 ++
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/libbrasero-burn/burn-task-ctx.c b/libbrasero-burn/burn-task-ctx.c
index a4bf273..419cdfa 100644
--- a/libbrasero-burn/burn-task-ctx.c
+++ b/libbrasero-burn/burn-task-ctx.c
@@ -681,6 +681,9 @@ brasero_task_ctx_set_progress (BraseroTaskCtx *self,
return BRASERO_BURN_OK;
}
+ if (priv->progress < progress)
+ priv->progress = progress;
+
if (!priv->timer)
return BRASERO_BURN_OK;
@@ -692,9 +695,6 @@ brasero_task_ctx_set_progress (BraseroTaskCtx *self,
priv->current_elapsed = elapsed;
}
- if (priv->progress < progress)
- priv->progress = progress;
-
return BRASERO_BURN_OK;
}
diff --git a/plugins/checksum/burn-checksum-image.c b/plugins/checksum/burn-checksum-image.c
index 06297ae..f1dc5f9 100644
--- a/plugins/checksum/burn-checksum-image.c
+++ b/plugins/checksum/burn-checksum-image.c
@@ -705,12 +705,14 @@ brasero_checksum_image_clock_tick (BraseroJob *job)
BraseroChecksumImagePrivate *priv;
priv = BRASERO_CHECKSUM_IMAGE_PRIVATE (job);
+
if (!priv->checksum)
return BRASERO_BURN_OK;
if (!priv->total)
return BRASERO_BURN_OK;
+ brasero_job_start_progress (job, FALSE);
brasero_job_set_progress (job,
(gdouble) priv->bytes /
(gdouble) priv->total);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]