1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
diff -u -r uade-0.91-org/plugindir/beepmp/uade.c uade-0.91/plugindir/beepmp/uade.c
--- uade-0.91-org/plugindir/beepmp/uade.c 2004-09-10 21:36:16.569584744 +0300
+++ uade-0.91/plugindir/beepmp/uade.c 2004-09-10 21:36:33.496011536 +0300
@@ -305,9 +305,12 @@
/* xmms calls this function to check song */
static int is_our_file(char *filename) {
int ours;
+ const char *prefix = "file://";
if(!uade_is_operational) {
return FALSE;
}
+ if (strncasecmp(filename, prefix, strlen(prefix)) == 0)
+ filename += strlen(prefix);
ours = check_my_file(filename, 0, 0);
if (ours) {
FILE *f = fopen(filename, "rb");
@@ -648,6 +651,10 @@
int *songdata;
char *tempname;
int have_name_hash;
+ const char *prefix = "file://";
+
+ if (strncasecmp(filename, prefix, strlen(prefix)) == 0)
+ filename += strlen(prefix);
if (playingbit) {
fprintf(stderr, "uade: A serious bug has been detected:\n");
@@ -1059,6 +1066,10 @@
static void get_song_info(char *filename, char **title, int *length) {
char *temp;
char md5namehash[33];
+ const char *prefix = "file://";
+
+ if (strncasecmp(filename, prefix, strlen(prefix)) == 0)
+ filename += strlen(prefix);
temp = strrchr(filename, (int) '/');
if (temp) {
|