dashdemux: improve mpd parsing for repeated segment entries
authorThiago Santos <thiagoss@osg.samsung.com>
Thu, 7 May 2015 19:30:48 +0000 (16:30 -0300)
committerThiago Santos <thiagoss@osg.samsung.com>
Wed, 13 May 2015 16:35:14 +0000 (13:35 -0300)
commit6344f86e44d0c31a169fd5942b61e9126b57027f
treee78a9580cfad33371954472b571863a5eb8c5b04
parent61cad123d75cbce137fa8eb3eb305a1ef32a13e4
dashdemux: improve mpd parsing for repeated segment entries

Use a single segment to represent it internally to avoid using too
much memory. This has the drawback of issuing a linear search to
find the correct segment to play but this can be fixed by using
binary searches or caching the current position and just looking
for the next one.

https://bugzilla.gnome.org/show_bug.cgi?id=748369
ext/dash/gstmpdparser.c
ext/dash/gstmpdparser.h