Mercurial > audlegacy
changeset 927:afd83c152cfd trunk
[svn] Look, you missed a spot.
author | chainsaw |
---|---|
date | Wed, 12 Apr 2006 15:17:39 -0700 |
parents | 3d4af4890339 |
children | 5184f7737324 |
files | Plugins/Input/wma/wma.c |
diffstat | 1 files changed, 10 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugins/Input/wma/wma.c Wed Apr 12 13:35:24 2006 -0700 +++ b/Plugins/Input/wma/wma.c Wed Apr 12 15:17:39 2006 -0700 @@ -31,10 +31,11 @@ #include <glib.h> #include <glib/gi18n.h> -#include <audacious/plugin.h> -#include <audacious/output.h> -#include <libaudacious/util.h> -#include <libaudacious/titlestring.h> +#include "audacious/plugin.h" +#include "audacious/output.h" +#include "libaudacious/util.h" +#include "libaudacious/titlestring.h" +#include "libaudacious/vfs.h" #include "avcodec.h" #include "avformat.h" @@ -468,7 +469,7 @@ *playtime, *samplerate, *filesize; - FILE *f; + VFSFile *f; if (dialog) { (void)printf(_("Info dialog is already opened!\n")); return; @@ -511,14 +512,14 @@ samplerate = g_strdup_printf(_("%d Hz"), s->sample_rate); /* filesize */ - f = fopen(filename, "rb"); + f = vfs_fopen(filename, "rb"); if (f == NULL) return; - fseek(f, 0, SEEK_END); - filesize = g_strdup_printf(_("%lu Bytes"), ftell(f)); - fclose(f); + vfs_fseek(f, 0, SEEK_END); + filesize = g_strdup_printf(_("%lu Bytes"), vfs_ftell(f)); + vfs_fclose(f); dialog = gtk_dialog_new();