Here is the patch to correct this bug

Regards
Stephane

diff -u xmms-1.2.10+cvs20050209.orig/Input/mpg123/fileinfo.c
xmms-1.2.10+cvs20050209.new/Input/mpg123/fileinfo.c
--- xmms-1.2.10+cvs20050209.orig/Input/mpg123/fileinfo.c
2004-07-19 23:45:09.000000000 +0200
+++ xmms-1.2.10+cvs20050209.new/Input/mpg123/fileinfo.c 2005-06-25
19:48:12.000000000 +0200
@@ -498,8 +498,15 @@
        gtk_editable_set_position(GTK_EDITABLE(filename_entry), -1);

        title = g_strdup(g_basename(filename));
-       if ((tmp = strrchr(title, '.')) != NULL)
-               *tmp = '\0';
+       if (strncasecmp(filename, "http://";, 7))
+       {
+               if ((tmp = strrchr(title, '.')) != NULL)
+                       *tmp = '\0';
+       }
+       else
+       {
+               *title = '\0';
+       }
        gtk_entry_set_text(GTK_ENTRY(title_entry), title);
        g_free(title);


--- xmms-1.2.10+cvs20050209.orig/Input/mpg123/fileinfo.c        2004-07-19 
23:45:09.000000000 +0200
+++ xmms-1.2.10+cvs20050209.new/Input/mpg123/fileinfo.c 2005-06-25 
19:48:12.000000000 +0200
@@ -498,8 +498,15 @@
        gtk_editable_set_position(GTK_EDITABLE(filename_entry), -1);
 
        title = g_strdup(g_basename(filename));
-       if ((tmp = strrchr(title, '.')) != NULL)
-               *tmp = '\0';
+       if (strncasecmp(filename, "http://";, 7))
+       {
+               if ((tmp = strrchr(title, '.')) != NULL)
+                       *tmp = '\0';
+       }
+       else
+       {
+               *title = '\0';
+       }
        gtk_entry_set_text(GTK_ENTRY(title_entry), title);
        g_free(title);
 

Reply via email to