mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-25 07:26:29 +00:00
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
This commit is contained in:
parent
1f59906ec1
commit
d3e7981527
1 changed files with 7 additions and 5 deletions
12
gst/gsturi.c
12
gst/gsturi.c
|
@ -789,6 +789,13 @@ gst_file_utils_canonicalise_path (const gchar * path)
|
||||||
{
|
{
|
||||||
gchar **parts, **p, *clean_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);
|
parts = g_strsplit (path, "/", -1);
|
||||||
|
|
||||||
p = parts;
|
p = parts;
|
||||||
|
@ -877,15 +884,10 @@ gst_filename_to_uri (const gchar * filename, GError ** error)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* path is now absolute, but contains '.' or '..' */
|
/* path is now absolute, but contains '.' or '..' */
|
||||||
#ifndef G_OS_WIN32
|
|
||||||
abs_clean = gst_file_utils_canonicalise_path (abs_location);
|
abs_clean = gst_file_utils_canonicalise_path (abs_location);
|
||||||
GST_LOG ("'%s' -> '%s' -> '%s'", filename, abs_location, abs_clean);
|
GST_LOG ("'%s' -> '%s' -> '%s'", filename, abs_location, abs_clean);
|
||||||
uri = g_filename_to_uri (abs_clean, NULL, error);
|
uri = g_filename_to_uri (abs_clean, NULL, error);
|
||||||
g_free (abs_clean);
|
g_free (abs_clean);
|
||||||
#else
|
|
||||||
GST_WARNING ("FIXME: canonicalise win32 path");
|
|
||||||
uri = g_filename_to_uri (abs_location, NULL, error);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
beach:
|
beach:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue