changeset 2211:2a13a038987c

vorbis: bitrate field added
author Eugene Zagidullin <e.asphyx@gmail.com>
date Thu, 06 Dec 2007 03:54:59 +0300
parents d0ede319f7b9
children a13b8f308dce
files src/vorbis/vcupdate.c src/vorbis/vorbis.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/vorbis/vcupdate.c	Thu Dec 06 03:41:16 2007 +0300
+++ b/src/vorbis/vcupdate.c	Thu Dec 06 03:54:59 2007 +0300
@@ -18,8 +18,6 @@
  *
  */
 
-#define AUD_DEBUG
-
 #include "config.h"
 
 #include <glib.h>
--- a/src/vorbis/vorbis.c	Thu Dec 06 03:41:16 2007 +0300
+++ b/src/vorbis/vorbis.c	Thu Dec 06 03:54:59 2007 +0300
@@ -631,6 +631,8 @@
 
     /* associate with tuple */
     aud_tuple_associate_int(tuple, FIELD_LENGTH, NULL, length);
+    /* maybe, it would be better to display nominal bitrate (like in main win), not average? --eugene */
+    aud_tuple_associate_int(tuple, FIELD_BITRATE, NULL, ov_bitrate(vorbisfile, -1)/1000);
 
     if ((comment = ov_comment(vorbisfile, -1))) {
         gchar *tmps;