# HG changeset patch # User nenolod # Date 1150421835 25200 # Node ID 74aa6a352a0c403e3a2c830d5cfef51dfaa12079 # Parent 41fa26463c2781d5a8a79d5a106b4cfc3b6bbe42 [svn] - flac_get_tuple(): properly calculate length. oops! diff -r 41fa26463c27 -r 74aa6a352a0c ChangeLog --- 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 + 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 revision [1426] - libaudacious.so.3 diff -r 41fa26463c27 -r 74aa6a352a0c Plugins/Input/flac/tag.c --- 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; }