plugins.ustreamtv: Fix incorrect max chunk range.
stream.hls: Download segments fully before writing to output.