matroskademux: Advance sparse streams only as much as required to keep the gap smalle...
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 26 Feb 2010 17:10:32 +0000 (18:10 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 27 Feb 2010 11:20:06 +0000 (12:20 +0100)
commitad71d43f5221fedd4a8b2733a5e572ced93b3016
tree7b138c168c691dcbb776bedee700ea44ff38d713
parentec642338e31c0e5657fea534067f6d69c66fe161
matroskademux: Advance sparse streams only as much as required to keep the gap smaller than 500ms

Changing it to the newest timestamp that was ever pushed will
increase the segment start in 500ms jumps, which could be just
after the next sparse stream buffer. E.g.

Video at 1.0s, sparse stream at 0.5s would jump the
sparse stream to 1.0s. Now a new sparse stream buffer could
appear that has a timestamp of 0.9s and this would be
dropped for no good reason because of bad luck.
gst/matroska/matroska-demux.c