[libgsf] GsfInputGio: always make local copy.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgsf] GsfInputGio: always make local copy.
- Date: Thu, 6 Mar 2014 02:17:48 +0000 (UTC)
commit 69c22b1deecb72d45172591cbef1076cb883db91
Author: Morten Welinder <terra gnome org>
Date: Wed Mar 5 21:17:09 2014 -0500
GsfInputGio: always make local copy.
gio is buggy and reports the wrong size.
ChangeLog | 5 +++++
NEWS | 1 +
gsf/gsf-input-gio.c | 5 +++++
3 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2ecf1d0..4dffadf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-03-05 Morten Welinder <terra gnome org>
+
+ * gsf/gsf-input-gio.c (gsf_input_gio_new): Always make local copy.
+ glib reports wrong size.
+
2014-02-28 Morten Welinder <terra gnome org>
* tools/gsf.c (main): Activate translations. Patch from
diff --git a/NEWS b/NEWS
index 4a63e54..1a447d8 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@ Juhani Numminen:
Morten:
* Fix invalid g_free for Windows.
+ * Work around glib/gio bug. [#724970]
--------------------------------------------------------------------------
libgsf 1.14.29
diff --git a/gsf/gsf-input-gio.c b/gsf/gsf-input-gio.c
index ed71fd4..1046943 100644
--- a/gsf/gsf-input-gio.c
+++ b/gsf/gsf-input-gio.c
@@ -131,6 +131,11 @@ gsf_input_gio_new (GFile *file, GError **err)
if (stream == NULL)
return NULL;
+ if (1) {
+ /* see https://bugzilla.gnome.org/show_bug.cgi?id=724970 */
+ return make_local_copy (file, stream);
+ }
+
if (!can_seek (stream))
return make_local_copy (file, stream);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]