dashdemux: offset segment numbers by startNumber
authorChris Bass <floobleflam@gmail.com>
Thu, 8 Aug 2013 10:19:00 +0000 (11:19 +0100)
committerThiago Santos <thiago.sousa.santos@collabora.com>
Fri, 16 Aug 2013 14:15:47 +0000 (11:15 -0300)
commit7f2122695662dcf64e5e2980eab93f5816a2c4b1
tree7386dca90b329182d04bb263060bd4f991b97d68
parent19a45554bf3265018bed3f925baa0c404706a62b
dashdemux: offset segment numbers by startNumber

For SegmentTemplate elements containing a startNumber attribute, the
`number' member of GstMediaSegments should be offset by the value of
startNumber; however, this is not currently the case. As a result, the
first URI(s) requested by the download loop will be wrong.

This commit ensures that segment numbers will be offset by startNumber
when one is present in a SegmentTemplate element.

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