From 98670720c1278bb41caf3e3890abece246c63fb6 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Fri, 1 Aug 2003 16:17:46 +0000 Subject: [PATCH] Support gcc-2.9x, too Original commit message from CVS: Support gcc-2.9x, too --- common | 2 +- gst/indexers/gstfileindex.c | 11 +++++++---- plugins/indexers/gstfileindex.c | 11 +++++++---- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/common b/common index 8b323f4..6b0a313 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit 8b323f41bfaccb8f30bddfc6ff8bd6a4be04a3e1 +Subproject commit 6b0a313b93535f0df7956a01405ddb63a3d76b5a diff --git a/gst/indexers/gstfileindex.c b/gst/indexers/gstfileindex.c index b083465..703342f 100644 --- a/gst/indexers/gstfileindex.c +++ b/gst/indexers/gstfileindex.c @@ -508,13 +508,16 @@ _file_index_id_save_entries (gpointer *_key, GstFileIndexId *ii, gchar *prefix) { + GError *err; + gchar *path; + GIOChannel *chan; + if (!ii->array) return; - GError *err = NULL; - gchar *path = g_strdup_printf ("%s/%d", prefix, ii->id); - GIOChannel *chan = - g_io_channel_new_file (path, "w", &err); + err = NULL; + path = g_strdup_printf ("%s/%d", prefix, ii->id); + chan = g_io_channel_new_file (path, "w", &err); g_free (path); if (err) goto fail; diff --git a/plugins/indexers/gstfileindex.c b/plugins/indexers/gstfileindex.c index b083465..703342f 100644 --- a/plugins/indexers/gstfileindex.c +++ b/plugins/indexers/gstfileindex.c @@ -508,13 +508,16 @@ _file_index_id_save_entries (gpointer *_key, GstFileIndexId *ii, gchar *prefix) { + GError *err; + gchar *path; + GIOChannel *chan; + if (!ii->array) return; - GError *err = NULL; - gchar *path = g_strdup_printf ("%s/%d", prefix, ii->id); - GIOChannel *chan = - g_io_channel_new_file (path, "w", &err); + err = NULL; + path = g_strdup_printf ("%s/%d", prefix, ii->id); + chan = g_io_channel_new_file (path, "w", &err); g_free (path); if (err) goto fail; -- 2.7.4