[brasero] Fix 7ec4f9e0ff7428623672b0a82e6662564b551797 which was wrong
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [brasero] Fix 7ec4f9e0ff7428623672b0a82e6662564b551797 which was wrong
- Date: Mon, 24 Aug 2009 13:47:01 +0000 (UTC)
commit a2e8c1b9629a1291a02e7f77c3538ba416ef9fae
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Sun Aug 23 16:04:54 2009 +0200
Fix 7ec4f9e0ff7428623672b0a82e6662564b551797 which was wrong
libbrasero-burn/burn-task-ctx.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/libbrasero-burn/burn-task-ctx.c b/libbrasero-burn/burn-task-ctx.c
index d91112d..4913b10 100644
--- a/libbrasero-burn/burn-task-ctx.c
+++ b/libbrasero-burn/burn-task-ctx.c
@@ -623,14 +623,17 @@ brasero_task_ctx_set_progress (BraseroTaskCtx *self,
priv->progress_changed = 1;
if (priv->use_average_rate) {
- priv->progress = progress;
+ if (priv->progress < progress)
+ priv->progress = progress;
+
return BRASERO_BURN_OK;
}
/* here we prefer to use track written bytes instead of progress.
* NOTE: usually plugins will return only one information. */
if (priv->last_written) {
- priv->progress = progress;
+ if (priv->progress < progress)
+ priv->progress = progress;
return BRASERO_BURN_OK;
}
@@ -645,7 +648,9 @@ brasero_task_ctx_set_progress (BraseroTaskCtx *self,
priv->current_elapsed = elapsed;
}
- priv->progress = progress;
+ if (priv->progress < progress)
+ priv->progress = progress;
+
return BRASERO_BURN_OK;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]