changeset 1258:74aa6a352a0c trunk

[svn] - flac_get_tuple(): properly calculate length. oops!
author nenolod
date Thu, 15 Jun 2006 18:37:15 -0700
parents 41fa26463c27
children 0423885a75f8
files ChangeLog Plugins/Input/flac/tag.c
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Jun 15 17:42:59 2006 -0700
+++ b/ChangeLog	Thu Jun 15 18:37:15 2006 -0700
@@ -1,3 +1,12 @@
+2006-06-16 00:42:59 +0000  George Averill <nhjm449@gmail.com>
+  revision [1428]
+  - Don't leave files open after reading their tags!
+  
+
+  Changes:        Modified:
+  +1 -0           trunk/Plugins/Input/mpg123/mpg123.c  
+
+
 2006-06-15 16:17:59 +0000  William Pitcock <nenolod@nenolod.net>
   revision [1426]
   - libaudacious.so.3
--- a/Plugins/Input/flac/tag.c	Thu Jun 15 17:42:59 2006 -0700
+++ b/Plugins/Input/flac/tag.c	Thu Jun 15 18:37:15 2006 -0700
@@ -118,6 +118,7 @@
 	input->file_name = g_path_get_basename(filename_proxy);
 	input->file_path = filename_proxy;
 	input->file_ext = local__extname(filename_proxy);
+	input->length = (unsigned)((double)tags->data.stream_info.total_samples / (double)tags->data.stream_info.sample_rate * 1000.0 + 0.5);
 
 	return input;
 }