mssdemux: only add live fragments after manifest fragments
authorMatthew Waters <matthew@centricular.com>
Wed, 1 Mar 2017 09:51:43 +0000 (20:51 +1100)
committerMatthew Waters <matthew@centricular.com>
Mon, 27 Mar 2017 07:42:07 +0000 (18:42 +1100)
commit0a25fe289324bcac855c6fb6498f297556f90fb3
tree231fb37298080db5126c35cbace3d517cbfbed09
parentba0e1df657d98f6a621e841e4daa54bc059548eb
mssdemux: only add live fragments after manifest fragments

A live manifest may have a set (> LookAheadFragmentCount) of fragments
that have already been served and are stored on the server, maybe
indefinitely.  Adding the parsed live fragments after the manifest
fragments breaks duration reporting and the seekable range.

Fix by only adding parsed fragments outside the list of fragments which
assumes that the fragment list in the manifest is accurate enough to not
stray too far off what's in the retrieved data.

https://bugzilla.gnome.org/show_bug.cgi?id=779447
ext/smoothstreaming/gstmssmanifest.c