[0.11] gstreamer: uri: make win32 buildbot happy

Wim Taymans wtay at kemper.freedesktop.org
Fri Mar 4 07:18:48 PST 2011


Module: gstreamer
Branch: 0.11
Commit: d3e79815278f451423a9d8c6165ad4715a5b1d97
URL:    http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=d3e79815278f451423a9d8c6165ad4715a5b1d97

Author: Tim-Philipp Müller <tim.muller at collabora.co.uk>
Date:   Thu Feb 24 17:11:49 2011 +0000

uri: make win32 buildbot happy

gsturi.c:854:16: error: unused variable 'abs_clean'
gsturi.c:788:1: error: 'gst_file_utils_canonicalise_path' defined but not used

---

 gst/gsturi.c |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/gst/gsturi.c b/gst/gsturi.c
index 76a1f87..0f5bbbb 100644
--- a/gst/gsturi.c
+++ b/gst/gsturi.c
@@ -789,6 +789,13 @@ gst_file_utils_canonicalise_path (const gchar * path)
 {
   gchar **parts, **p, *clean_path;
 
+#ifdef G_OS_WIN32
+  {
+    GST_WARNING ("FIXME: canonicalise win32 path");
+    return g_strdup (path);
+  }
+#endif
+
   parts = g_strsplit (path, "/", -1);
 
   p = parts;
@@ -877,15 +884,10 @@ gst_filename_to_uri (const gchar * filename, GError ** error)
   }
 
   /* path is now absolute, but contains '.' or '..' */
-#ifndef G_OS_WIN32
   abs_clean = gst_file_utils_canonicalise_path (abs_location);
   GST_LOG ("'%s' -> '%s' -> '%s'", filename, abs_location, abs_clean);
   uri = g_filename_to_uri (abs_clean, NULL, error);
   g_free (abs_clean);
-#else
-  GST_WARNING ("FIXME: canonicalise win32 path");
-  uri = g_filename_to_uri (abs_location, NULL, error);
-#endif
 
 beach:
 



More information about the gstreamer-commits mailing list