livesync: Fix #452
-
livesync: Split
fallback_duration
intoin_
andout_duration
Make it independent of thelatency
; this was inconsistent anyway, where the default latency of zero got you a fallback duration of 100 ms and something else got you half the latency.Maintain a separate duration for the
in
and theout
side so we change the duration of repeat buffers after a caps change, not just before. -
livesync: Keep existing buffer duration in some cases
Resize a repeat buffer only if caps gave us a duration to use, or we consider its current duration unreasonable.In particular, for audio streams we should prefer reusing the buffer size upstream gave us, as we did before 6633cc40.
-
livesync: Remove the
stop
from outgoing segments
Our buffer duplication can extend a segment indefinitely.Fixes: #452 (closed)