changeset 2725:603b242c7bae

Remove is_our_file() from AdPlug (using tuple and vfs versions instead).
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 23 Jun 2008 12:03:01 +0300
parents 2e28d949789d
children 020f8ac96596
files src/adplug/adplug-xmms.cc
diffstat 1 files changed, 2 insertions(+), 25 deletions(-) [+]
line wrap: on
line diff
--- 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,