# HG changeset patch # User Eugene Zagidullin # Date 1201658655 -10800 # Node ID 47d7a45b26a050d5b6bb8ad571a5eac210278190 # Parent b2a2ca9fceda12ca9cd7949d942158cfbd6d1648 fixed ${bitrate} in title string diff -r b2a2ca9fceda -r 47d7a45b26a0 src/madplug/decoder.c --- 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); diff -r b2a2ca9fceda -r 47d7a45b26a0 src/madplug/plugin.c --- 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);