comparison src/madplug/plugin.c @ 646:ede814584df9 trunk

[svn] - screening by extension had not worked.
author yaz
date Tue, 13 Feb 2007 22:54:57 -0800
parents 0341583ad50c
children 8b9ef7a32e47
comparison
equal deleted inserted replaced
645:e0d131145768 646:ede814584df9
203 203
204 info.remote = FALSE; 204 info.remote = FALSE;
205 205
206 #if 1 206 #if 1
207 // XXX: temporary fix 207 // XXX: temporary fix
208 if (!strncasecmp("http://", filename, 7) || !strncasecmp("https://", filename, 8)) { 208 if (!strncasecmp("http://", filename, 7) || !strncasecmp("https://", filename, 8))
209 {
209 g_message("audmad_is_our_fd: remote"); 210 g_message("audmad_is_our_fd: remote");
210 info.remote = TRUE; 211 info.remote = TRUE;
211 } 212 }
212 #endif 213 #endif
213 214
214 /* I've seen some flac files beginning with id3 frames.. 215 /* I've seen some flac files beginning with id3 frames..
215 so let's exclude known non-mp3 filename extensions */ 216 so let's exclude known non-mp3 filename extensions */
216 if (!strcasecmp(".flac", ext) || !strcasecmp(".mpc", ext) || 217 if (!strcasecmp("flac", ext) || !strcasecmp("mpc", ext) ||
217 !strcasecmp(".tta", ext) || !strcasecmp(".ogg", ext)) 218 !strcasecmp("tta", ext) || !strcasecmp("ogg", ext) ||
219 !strcasecmp("wma", ext) )
218 return FALSE; 220 return FALSE;
219 221
220 if (fin == NULL) 222 if (fin == NULL)
221 return FALSE; 223 return FALSE;
222 224