Mercurial > audlegacy-plugins
changeset 558:324a6d834f32 trunk
[svn] - fix vorbis fileinfo stuff
author | nenolod |
---|---|
date | Sun, 28 Jan 2007 14:37:17 -0800 |
parents | 732f07a601bc |
children | d5782f3bd760 |
files | ChangeLog src/vorbis/fileinfo.c src/vorbis/vorbis.c src/vorbis/vorbis.h |
diffstat | 4 files changed, 19 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sun Jan 28 03:51:32 2007 -0800 +++ b/ChangeLog Sun Jan 28 14:37:17 2007 -0800 @@ -1,3 +1,10 @@ +2007-01-28 11:51:32 +0000 Tony Vroon <chainsaw@gentoo.org> + revision [1200] + Count leading zeroes as PPC assembler. Implemented by Joseph Jezak (JoseJX) from Gentoo. + trunk/src/alac/alac.c | 8 ++++++++ + 1 file changed, 8 insertions(+) + + 2007-01-28 10:32:41 +0000 William Pitcock <nenolod@sacredspiral.co.uk> revision [1198] - User-Agent: Audacious/$version (curl transport)
--- a/src/vorbis/fileinfo.c Sun Jan 28 03:51:32 2007 -0800 +++ b/src/vorbis/fileinfo.c Sun Jan 28 14:37:17 2007 -0800 @@ -498,7 +498,7 @@ vorbis_info *vi; vorbis_comment *comment = NULL; - VFSFile *fh; + VFSVorbisFile *fh = g_new0(VFSVorbisFile, 1); gboolean clear_vf = FALSE; @@ -925,7 +925,7 @@ gtk_label_set_text(GTK_LABEL(filesize_label), _("File size:")); gtk_label_set_text(GTK_LABEL(filesize_label_val), _("N/A")); - if ((fh = vfs_fopen(vte.filename, "r")) != NULL) { + if ((fh->fd = vfs_fopen(vte.filename, "r")) != NULL) { g_mutex_lock(vf_mutex); if (ov_open_callbacks(fh, &vf, NULL, 0, vorbis_callbacks) == 0) { @@ -949,8 +949,8 @@ time = ov_time_total(&vf, -1); minutes = time / 60; seconds = time % 60; - vfs_fseek(fh, 0, SEEK_END); - filesize = vfs_ftell(fh); + vfs_fseek(fh->fd, 0, SEEK_END); + filesize = vfs_ftell(fh->fd); label_set_text(GTK_LABEL(bitrate_label_val), _("%d KBit/s (nominal)"), bitrate); @@ -963,7 +963,7 @@ } else - vfs_fclose(fh); + vfs_fclose(fh->fd); } rg_track_gain = get_comment(comment, "replaygain_track_gain"); @@ -1065,4 +1065,6 @@ gtk_widget_set_sensitive(save_button, FALSE); gtk_widget_set_sensitive(remove_button, FALSE); + + g_free(fh); }