Subject: Removal of xmms_urldecode_path() in Audacious dev tree.

From: Joker
Date: Wed Jul 4 13:36:27 2007

To: UADE-Developer-discussion
Audacious removed xmms_urldecode_path() and now uses the generic glib
function g_filename_from_uri().

Replacing...
decoded = xmms_urldecode_path( (char *) filename );
...With...
decoded = g_filename_from_uri((char *) filename, NULL, NULL);

... in plugin.c (x2) and fileinfo.c will fix this and will also work on old and
new releases.

http://www.netswarm.net/misc/uade-audacious-urldecode.patch
[code:1:4aafef4885]
diff -ruN uade.orig/src/frontends/audacious/fileinfo.c uade/src/frontends/audacious/fileinfo.c
--- uade.orig/src/frontends/audacious/fileinfo.c	2007-05-27 03&#58;58&#58;59.000000000 +0200
+++ uade/src/frontends/audacious/fileinfo.c	2007-07-04 15&#58;30&#58;23.000000000 +0200
@@ -86,7 +86,7 @@
     char * decoded = NULL;
 
     if &#40;strncmp&#40;filename, &quot;file&#58;/&quot;,6&#41; == 0&#41; &#123;
-      decoded = xmms_urldecode_path&#40;&#40;char *&#41; filename&#41;;
+      decoded = g_filename_from_uri&#40;&#40;char *&#41; filename, NULL, NULL&#41;;
       filename = decoded;
     &#125;
 #endif
diff -ruN uade.orig/src/frontends/audacious/plugin.c uade/src/frontends/audacious/plugin.c
--- uade.orig/src/frontends/audacious/plugin.c	2007-07-04 15&#58;10&#58;55.000000000 +0200
+++ uade/src/frontends/audacious/plugin.c	2007-07-04 15&#58;29&#58;11.000000000 +0200
@@ -330,7 +330,7 @@
 
 #ifdef __AUDACIOUS_INPUT_PLUGIN_API__
   if &#40;strncmp&#40;filename, &quot;file&#58;/&quot;, 6&#41; == 0&#41; &#123;
-    decoded = xmms_urldecode_path&#40;&#40;char *&#41; filename&#41;;
+    decoded = g_filename_from_uri&#40;&#40;char *&#41; filename, NULL, NULL&#41;;
     filename = decoded;
   &#125;
 #endif
@@ -763,7 +763,7 @@
 
 #ifdef __AUDACIOUS_INPUT_PLUGIN_API__
   if &#40;strncmp&#40;filename, &quot;file&#58;/&quot;, 6&#41; == 0&#41; &#123;
-    decoded = xmms_urldecode_path&#40;&#40;char *&#41; filename&#41;;
+    decoded = g_filename_from_uri&#40;&#40;char *&#41; filename, NULL, NULL&#41;;
     if &#40;decoded != NULL&#41;
       filename = decoded;
   &#125;
[/code:1:4aafef4885]

Greetings
Joker / Christian Birchinger &lt;[email-masked]&gt;

---

From: shd
Date: Thu Jul 5 12:04:10 2007

To: UADE-Developer-discussion
[quote:dce62f9340="Joker"]Audacious removed xmms_urldecode_path() and now uses the generic glib
function g_filename_from_uri().
[/quote:dce62f9340]
Thanks, git-pull.
[code:1:dce62f9340]commit 8c4d94cd48d78e6e7d73ad1594f4f3b4130d307f
Author&#58; Christian Birchinger &lt;[email-masked]&gt;
Date&#58;   Thu Jul 5 15&#58;02&#58;14 2007 +0300

    Audacious removed xmms_urldecode_path&#40;&#41; and now uses the generic glib
    function g_filename_from_uri&#40;&#41;.
[/code:1:dce62f9340]

---

From: mld/uade team
Date: Fri Jul 6 05:54:57 2007

thanks joker. :-)