# HG changeset patch # User William Pitcock # Date 1183616776 18000 # Node ID 43a075cb5c813a0c1d81a50b9c5c85bbaf7105a3 # Parent 7f17c37db82b3fcdb928bb8a0042b9e14e92da2f find_file_recursively(): Return a valid URI instead of a literal path. diff -r 7f17c37db82b -r 43a075cb5c81 src/audacious/util.c --- 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; }