hlsdemux: cache total duration to avoid iterating at every query
authorThiago Santos <thiagoss@osg.samsung.com>
Thu, 8 Jan 2015 16:03:11 +0000 (13:03 -0300)
committerThiago Santos <thiagoss@osg.samsung.com>
Thu, 8 Jan 2015 20:55:33 +0000 (17:55 -0300)
commite21abb62e0eb4f293984f6dc61c464eecb69fbcc
treec1628663aad5c0d48ba1d71a13aa7b53bf7ffab8
parent4531a341a8490f8e5277c1dac1e2e5cf98c71b64
hlsdemux: cache total duration to avoid iterating at every query

Duration queries can be done a few times per second and would cause
the segment list to be traversed for every one. Caching the duration
prevents that.
ext/hls/m3u8.c
ext/hls/m3u8.h