[hlsnative] Correct handling when remaining_bytes is None
[youku] Modernize somewhat