36 lines
1.0 KiB
Diff
36 lines
1.0 KiB
Diff
From a357525312112491b2cefc144a6d5853db9f1a4e Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Ingo=20Br=C3=BCckl?= <ib@wupperonline.de>
|
|
Date: Wed, 17 Jun 2020 13:34:06 +0200
|
|
Subject: [PATCH] Add xa_7zip_seek_position()
|
|
|
|
This will allow going through volumes later on.
|
|
---
|
|
src/7zip.c | 7 ++++++-
|
|
1 file changed, 6 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/7zip.c b/src/7zip.c
|
|
index 1d5f2e59..54ceb956 100644
|
|
--- a/src/7zip.c
|
|
+++ b/src/7zip.c
|
|
@@ -29,6 +29,11 @@
|
|
|
|
static gboolean data_line, encrypted, last_line;
|
|
|
|
+static void xa_7zip_seek_position (GIOChannel *file, gint64 offset, GSeekType type)
|
|
+{
|
|
+ g_io_channel_seek_position(file, offset, type, NULL);
|
|
+}
|
|
+
|
|
static void xa_7zip_uint64_skip (GIOChannel *file)
|
|
{
|
|
gchar first, byte;
|
|
@@ -85,7 +90,7 @@ gboolean is7zip_mhe (const gchar *filename)
|
|
}
|
|
|
|
/* skip next header size and CRC32 */
|
|
- g_io_channel_seek_position(file, 12 + offset, G_SEEK_CUR, NULL);
|
|
+ xa_7zip_seek_position(file, 12 + offset, G_SEEK_CUR);
|
|
|
|
/* header info */
|
|
g_io_channel_read_chars(file, &byte, sizeof(byte), NULL, NULL);
|