# HG changeset patch # User Eugene Zagidullin # Date 1196728448 -10800 # Node ID 0b67fb27db5817eebfade726602f043a161287d4 # Parent 7c7e6f5c494e6862f77555b8fc2db6a631a4dcb6 get benefit of FIELD_BITRATE diff -r 7c7e6f5c494e -r 0b67fb27db58 src/madplug/plugin.c --- a/src/madplug/plugin.c Tue Dec 04 02:11:02 2007 +0300 +++ b/src/madplug/plugin.c Tue Dec 04 03:34:08 2007 +0300 @@ -772,12 +772,8 @@ aud_tuple_associate_int(tuple, FIELD_LENGTH, NULL, length); } - if (myinfo.vbr) { - string = g_strdup_printf("lossy, bitrate: VBR (avg. %d kbps)", myinfo.bitrate / 1000); - } else { - string = g_strdup_printf("lossy, bitrate: %d kbps", myinfo.bitrate / 1000); - } - aud_tuple_associate_string(tuple, FIELD_QUALITY, NULL, string); + 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);