Refactor TvaStream _getchunk