matroskaparse: 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>
Tue, 17 May 2011 07:03:50 +0000 (09:03 +0200)
commit4df5d896f096c6ab730ba8f7cb2e9af6ff412b03
tree15bd252c434f63d21b7d9d67e2f39c2a277df6c1
parent8b910885ecec02c1974a2689ee06e3bd3f0b8cca
matroskaparse: 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-parse.c