diff src/alac/plugin.c @ 332:626f9f4d79a8 trunk

[svn] Remove old-style is_our_file() where a new-style is_our_fd() exists
author kiyoshi
date Tue, 05 Dec 2006 01:07:41 -0800
parents 74df3bd6f472
children a157306caf03
line wrap: on
line diff
--- a/src/alac/plugin.c	Mon Dec 04 15:26:12 2006 -0800
+++ b/src/alac/plugin.c	Tue Dec 05 01:07:41 2006 -0800
@@ -96,38 +96,6 @@
 	/* empty */
 }
 
-gboolean is_our_file(char *filename)
-{
-    demux_res_t demux_res;
-    VFSFile *input_file;
-    stream_t *input_stream;
- 
-    input_file = vfs_fopen(filename, "rb");
-    input_stream = stream_create_file(input_file, 1);
- 
-    set_endian();
- 
-    if (!input_stream)
-    {
-	vfs_fclose(input_file);
-        return FALSE;
-    }
-         
-    /* if qtmovie_read returns successfully, the stream is up to
-     * the movie data, which can be used directly by the decoder */
-    if (!qtmovie_read(input_stream, &demux_res))
-    {
-        stream_destroy(input_stream);
-	vfs_fclose(input_file);
-        return FALSE;
-    }
- 
-    stream_destroy(input_stream);
-    vfs_fclose(input_file);
-
-    return TRUE;
-}
-
 gboolean is_our_fd(char *filename, VFSFile* input_file)
 {
     demux_res_t demux_res;
@@ -243,7 +211,7 @@
     alac_init,
     alac_about,
     NULL,
-    is_our_file,
+    NULL,
     NULL,
     play_file,
     stop,