changeset 2207:0b67fb27db58

get benefit of FIELD_BITRATE
author Eugene Zagidullin <e.asphyx@gmail.com>
date Tue, 04 Dec 2007 03:34:08 +0300
parents 7c7e6f5c494e
children 201a47338baf
files src/madplug/plugin.c
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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);