comparison src/audacious/input.c @ 3341:3da640de0e99 trunk

Check for registered URI://s defined by uri_set_plugin
author Christian Birchinger <joker@netswarm.net>
date Sun, 12 Aug 2007 21:12:54 +0200
parents ea806daf3ef0
children 5d50b9604ddc
comparison
equal deleted inserted replaced
3340:a0c93cb34598 3341:3da640de0e99
366 366
367 tmp = strrchr(tmp_uri, '?'); 367 tmp = strrchr(tmp_uri, '?');
368 368
369 if (tmp != NULL && g_ascii_isdigit(*(tmp + 1))) 369 if (tmp != NULL && g_ascii_isdigit(*(tmp + 1)))
370 *tmp = '\0'; 370 *tmp = '\0';
371
372 /* Check for plugins with custom URI:// strings */
373 /* cue:// cdda:// tone:// tact:// */
374 if ((ip = uri_get_plugin(filename)) != NULL &&
375 input_is_enabled(ip->filename) == TRUE)
376 {
377 if (ip->is_our_file != NULL)
378 ret = ip->is_our_file(filename_proxy);
379 else
380 ret = 0;
381 if (ret > 0)
382 {
383 g_free(filename_proxy);
384 pr = g_new0(ProbeResult, 1);
385 pr->ip = ip;
386 return pr;
387 }
388 g_free(filename_proxy);
389 return NULL;
390 }
371 391
372 /* CD-Audio uses cdda:// dummy paths, no filedescriptor handling for it */ 392 /* CD-Audio uses cdda:// dummy paths, no filedescriptor handling for it */
373 /* also cuesheet uses cue:// */ 393 /* also cuesheet uses cue:// */
374 if (!g_strncasecmp(filename, "cdda://", 7) || 394 if (!g_strncasecmp(filename, "cdda://", 7) ||
375 !g_strncasecmp(filename, "cue://", 6)) { 395 !g_strncasecmp(filename, "cue://", 6)) {