comparison src/madplug/plugin.c @ 2291:1457b35713d9

remove obsolete function
author mf0102 <0102@gmx.at>
date Thu, 10 Jan 2008 18:39:52 +0100
parents d25cd7e7eddb
children 47d7a45b26a0
comparison
equal deleted inserted replaced
2290:0f8450380020 2291:1457b35713d9
287 return ((unsigned long) hbuf[0] << 24) | 287 return ((unsigned long) hbuf[0] << 24) |
288 ((unsigned long) hbuf[1] << 16) | 288 ((unsigned long) hbuf[1] << 16) |
289 ((unsigned long) hbuf[2] << 8) | (unsigned long) hbuf[3]; 289 ((unsigned long) hbuf[2] << 8) | (unsigned long) hbuf[3];
290 } 290 }
291 291
292 gboolean audmad_is_remote(gchar *url)
293 {
294 gboolean rv = aud_vfs_is_remote(url);
295 return rv;
296 }
297
298 // audacious vfs fast version 292 // audacious vfs fast version
299 static int audmad_is_our_fd(char *filename, VFSFile *fin) 293 static int audmad_is_our_fd(char *filename, VFSFile *fin)
300 { 294 {
301 guint32 check; 295 guint32 check;
302 gchar *ext = extname(filename); 296 gchar *ext = extname(filename);
303 gint cyc = 0, chkcount = 0, chksize = 4096; 297 gint cyc = 0, chkcount = 0, chksize = 4096;
304 guchar buf[4]; 298 guchar buf[4];
305 guchar tmp[4096]; 299 guchar tmp[4096];
306 gint ret, i, frameSize; 300 gint ret, i, frameSize;
307 301
308 info.remote = FALSE; 302 info.remote = aud_vfs_is_remote(filename);
309
310 if(audmad_is_remote(filename))
311 info.remote = TRUE;
312 303
313 /* I've seen some flac files beginning with id3 frames.. 304 /* I've seen some flac files beginning with id3 frames..
314 so let's exclude known non-mp3 filename extensions */ 305 so let's exclude known non-mp3 filename extensions */
315 if ((ext != NULL) && 306 if ((ext != NULL) &&
316 (!strcasecmp("flac", ext) || !strcasecmp("mpc", ext) || 307 (!strcasecmp("flac", ext) || !strcasecmp("mpc", ext) ||
443 g_message("error initialising input"); 434 g_message("error initialising input");
444 return; 435 return;
445 } 436 }
446 437
447 // remote access must use fast scan. 438 // remote access must use fast scan.
448 rtn = input_get_info(&info, audmad_is_remote(url) ? TRUE : audmad_config.fast_play_time_calc); 439 rtn = input_get_info(&info, aud_vfs_is_remote(url) ? TRUE : audmad_config.fast_play_time_calc);
449 440
450 if (rtn == FALSE) { 441 if (rtn == FALSE) {
451 g_message("error reading input info"); 442 g_message("error reading input info");
452 /* 443 /*
453 * return; 444 * return;