matroskademux: calculate segment duration after parsing all the IDs
authorDebarshi Ray <rishi@gnu.org>
Sun, 15 May 2011 20:25:15 +0000 (23:25 +0300)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 16 May 2011 06:56:06 +0000 (08:56 +0200)
commitbdc464a778e26bea0201e66b12473886488c2ef0
tree287dc051de736381ee7ae02409e95d2e179ce6ca
parent5b99b910ec5a0cc13137c06c9c1625e770695062
matroskademux: calculate segment duration after parsing all the IDs

Since the segment duration is given in terms of the
GST_MATROSKA_ID_TIMECODESCALE we should only convert it into
nanoseconds when we are sure that any scale specified in the file has
been read.

https://bugzilla.gnome.org/show_bug.cgi?id=650258
gst/matroska/matroska-demux.c