livehttp: use playlist max duration instead segment max duration to calculate if we can remove segment in live case
httplive: remove write-only variable