[file-roller] libarchive: fixed extraction progress
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] libarchive: fixed extraction progress
- Date: Sat, 19 Dec 2015 16:26:57 +0000 (UTC)
commit 0d799120860e2ca5ede9046036ef73bd101a9c47
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Dec 13 17:36:04 2015 +0100
libarchive: fixed extraction progress
src/fr-archive-libarchive.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/fr-archive-libarchive.c b/src/fr-archive-libarchive.c
index dbe48bf..1c04d0f 100644
--- a/src/fr-archive-libarchive.c
+++ b/src/fr-archive-libarchive.c
@@ -831,15 +831,15 @@ extract_archive_thread (GSimpleAsyncResult *result,
if (target_offset > actual_offset) {
if (! _g_output_stream_add_padding (extract_data, ostream,
target_offset, actual_offset, cancellable, &load_data->error))
break;
+ fr_archive_progress_inc_completed_bytes (load_data->archive,
target_offset - actual_offset);
actual_offset = target_offset;
- fr_archive_progress_set_completed_bytes (load_data->archive,
actual_offset);
}
if (! g_output_stream_write_all (ostream, buffer, buffer_size,
&bytes_written, cancellable, &load_data->error))
break;
actual_offset += bytes_written;
- fr_archive_progress_set_completed_bytes (load_data->archive,
actual_offset);
+ fr_archive_progress_inc_completed_bytes (load_data->archive,
bytes_written);
}
if ((r == ARCHIVE_EOF) && (target_offset > actual_offset))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]