mp3parse: use proper total_time and total_bytes in various cases
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Mon, 4 Jan 2010 13:59:06 +0000 (14:59 +0100)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Mon, 4 Jan 2010 14:25:50 +0000 (15:25 +0100)
commitb64f6065c2b6c0b20829ed275c7647dd04c487fd
tree7a1ee8baf277f29fa69e7c96c581f7386de77ec9
parent5e3f07b6a1b259cd3c73fa7fe6e3a3110ae3e3ce
mp3parse: use proper total_time and total_bytes in various cases

The correct basis for (Xing, VBRI) seek table calculations is the
byte size and duration provided by that metadata, rather than some
other (possibly even estimated) one.  This also prevents an infinite
conversion loop in (unlikely) case where a TOC is provided without
such corresponding (duration) metdata.
gst/mpegaudioparse/gstmpegaudioparse.c