Mercurial > audlegacy-plugins
diff src/console/Audacious_Driver.cxx @ 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 | d49c3049fe5e |
| children | 986f098da058 |
line wrap: on
line diff
--- a/src/console/Audacious_Driver.cxx Mon Dec 04 15:26:12 2006 -0800 +++ b/src/console/Audacious_Driver.cxx Tue Dec 05 01:07:41 2006 -0800 @@ -422,30 +422,6 @@ return result; } -static gint is_our_file( gchar* filename ) -{ - VFSFile *fd; - gint ret = 0; - - Url_Parser url( filename ); - if ( !url.path ) return false; - - // open file if not already open - Vfs_File_Reader in; - if ( log_err( in.open( url.path ) ) ) return false; - fd = in.file(); - - // read header and identify type - gchar header [4] = { }; - vfs_fread( header, sizeof header, 1, fd ); - gme_type_t type = gme_identify_extension( gme_identify_header( header ), gme_type_list() ); - - if ( type ) - ret = -1; - - return ret; -} - // Setup static void console_init(void) @@ -478,7 +454,7 @@ console_init, console_aboutbox, console_cfg_ui, - is_our_file, + NULL, NULL, play_file, console_stop,
