# HG changeset patch # User Cristi Magherusan # Date 1185102197 -10800 # Node ID 34b4b7c9bcd4ffd975c86fc9def64dbdb0861c1b # Parent e8f2b130e59e99e87157e87f6c11a1120b1ab9f2 made the decoder chooser aware of lastfm MP3 streams so that it will only try mad diff -r e8f2b130e59e -r 34b4b7c9bcd4 src/audacious/input.c --- a/src/audacious/input.c Sun Jul 22 12:12:08 2007 +0900 +++ b/src/audacious/input.c Sun Jul 22 14:03:17 2007 +0300 @@ -364,11 +364,12 @@ filename_proxy = g_strdup(filename); /* Some URIs will end in ? to determine the subsong requested. */ + /* other streams (like lastfm's) end in ?Session=*/ tmp_uri = g_strdup(filename); tmp = strrchr(tmp_uri, '?'); - if (tmp != NULL && g_ascii_isdigit(*(tmp + 1))) + if (tmp != NULL && (g_ascii_isdigit(*(tmp + 1))|| !g_strncasecmp(tmp+1,"Session=",8))) *tmp = '\0'; fd = vfs_buffered_file_new_from_uri(tmp_uri);