changeset 2988:43a075cb5c81 trunk

find_file_recursively(): Return a valid URI instead of a literal path.
author William Pitcock <nenolod@atheme-project.org>
date Thu, 05 Jul 2007 01:26:16 -0500
parents 7f17c37db82b
children 15f6c9949cde
files src/audacious/util.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/util.c	Thu Jul 05 01:25:56 2007 -0500
+++ b/src/audacious/util.c	Thu Jul 05 01:26:16 2007 -0500
@@ -99,13 +99,17 @@
 find_file_recursively(const gchar * path, const gchar * filename)
 {
     FindFileContext context;
+    gchar *out;
 
     context.to_match = filename;
     context.match = NULL;
     context.found = FALSE;
 
     dir_foreach(path, find_file_func, &context, NULL);
-    return context.match;
+    out = g_strconcat("file:", context.match);
+    g_free(context.match);
+
+    return out;
 }