changeset 2340:47d7a45b26a0

fixed ${bitrate} in title string
author Eugene Zagidullin <e.asphyx@gmail.com>
date Wed, 30 Jan 2008 05:04:15 +0300
parents b2a2ca9fceda
children 59addab003d7 a916f7215b62
files src/madplug/decoder.c src/madplug/plugin.c
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/madplug/decoder.c	Fri Jan 25 11:34:10 2008 +0100
+++ b/src/madplug/decoder.c	Wed Jan 30 05:04:15 2008 +0300
@@ -386,6 +386,8 @@
     else if (info->vbr && xing_bitrate == 0 && bitrate_frames != 0) {
         info->bitrate = accum_bitrate / bitrate_frames;
     }
+    
+    aud_tuple_associate_int(info->tuple, FIELD_BITRATE, NULL, info->bitrate / 1000);
 
     mad_frame_finish(&frame);
     mad_header_finish(&header);
--- a/src/madplug/plugin.c	Fri Jan 25 11:34:10 2008 +0100
+++ b/src/madplug/plugin.c	Wed Jan 30 05:04:15 2008 +0300
@@ -733,7 +733,6 @@
 
     aud_tuple_associate_string(tuple, FIELD_QUALITY, NULL, "lossy");
     aud_tuple_associate_int(tuple, FIELD_BITRATE, NULL, myinfo.bitrate / 1000);
-    g_free(string);
 
     string = g_strdup_printf("MPEG-1 Audio Layer %d", myinfo.mpeg_layer);
     aud_tuple_associate_string(tuple, FIELD_CODEC, NULL, string);