ext/mad/gstmad.c: send the average bitrate read from the xing header

Original commit message from CVS:
2004-03-06  Christophe Fergeau  <teuf@gnome.org>

* ext/mad/gstmad.c: (gst_mad_chain): send the average bitrate read
from the xing header
This commit is contained in:
Christophe Fergeau 2004-03-06 16:02:21 +00:00
parent c336894adf
commit 05a4a12c53
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2004-03-06 Christophe Fergeau <teuf@gnome.org>
* ext/mad/gstmad.c: (gst_mad_chain): send the average bitrate read
from the xing header
2004-03-06 Benjamin Otte <otte@gnome.org>
* gst/audioconvert/gstaudioconvert.c: (gst_audio_convert_getcaps),

View file

@ -1208,6 +1208,7 @@ gst_mad_chain (GstPad *pad, GstData *_data)
list = gst_tag_list_new ();
gst_tag_list_add (list, GST_TAG_MERGE_REPLACE,
GST_TAG_DURATION, (gint64)time*1000*1000*1000,
GST_TAG_BITRATE, bitrate,
NULL);
gst_element_found_tags (GST_ELEMENT (mad), list);
if (GST_PAD_IS_USABLE (mad->srcpad)) {