# HG changeset patch # User Matti Hamalainen # Date 1214211781 -10800 # Node ID 603b242c7bae2f6a0d21dabd9676a7bf6dc25710 # Parent 2e28d949789dd0da783e6fc135e5be5c437a46f9 Remove is_our_file() from AdPlug (using tuple and vfs versions instead). diff -r 2e28d949789d -r 603b242c7bae src/adplug/adplug-xmms.cc --- a/src/adplug/adplug-xmms.cc Sat Jun 21 13:57:01 2008 +0300 +++ b/src/adplug/adplug-xmms.cc Mon Jun 23 12:03:01 2008 +0300 @@ -913,29 +913,6 @@ } static int -adplug_is_our_file (char *filename) -{ - CSilentopl tmpopl; - VFSFile *fd = aud_vfs_buffered_file_new_from_uri (filename); - if (!fd) - return FALSE; - - CPlayer *p = factory (fd, &tmpopl); - - dbg_printf ("adplug_is_our_file(\"%s\"): returned ", filename); - - if (p) - { - delete p; - dbg_printf ("TRUE\n"); - return TRUE; - } - - dbg_printf ("FALSE\n"); - return FALSE; -} - -static int adplug_get_time (InputPlayback * data) { if (audio_error) @@ -1140,8 +1117,8 @@ adplug_about, adplug_config, FALSE, - adplug_is_our_file, - NULL, // scan_dir (look in Input/cdaudio/cdaudio.c) + NULL, + NULL, adplug_play, adplug_stop, adplug_pause,