[brasero] Fix libburn report progress when there are more than one track (like an audio disc)
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [brasero] Fix libburn report progress when there are more than one track (like an audio disc)
- Date: Sun, 4 Oct 2009 12:19:37 +0000 (UTC)
commit 097975ccd0958bf4ba8cadb45e2634da6fd4f65c
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Sun Sep 27 15:32:49 2009 +0200
Fix libburn report progress when there are more than one track (like an audio disc)
plugins/libburnia/burn-libburn-common.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/plugins/libburnia/burn-libburn-common.c b/plugins/libburnia/burn-libburn-common.c
index d2289c0..271899d 100644
--- a/plugins/libburnia/burn-libburn-common.c
+++ b/plugins/libburnia/burn-libburn-common.c
@@ -242,9 +242,9 @@ brasero_libburn_common_status_changed (BraseroJob *self,
|| ctx->status == BURN_DRIVE_CLOSING_SESSION)
return TRUE;
- if (ctx->status == BURN_DRIVE_WRITING_LEADIN
- || ctx->status == BURN_DRIVE_WRITING_PREGAP) {
- ctx->sectors += ctx->track_sectors;
+ if (!ctx->track_sectors) {
+ /* This is for when we just start writing
+ * the first bytes of the first tracks */
ctx->track_sectors = progress->sectors;
ctx->track_num = progress->track;
}
@@ -387,6 +387,7 @@ brasero_libburn_common_status (BraseroJob *self,
gint64 cur_sector;
if (ctx->track_num != progress.track) {
+ /* This is when we change tracks */
ctx->sectors += ctx->track_sectors;
ctx->track_sectors = progress.sectors;
ctx->track_num = progress.track;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]