Fix dash do not exit when reach end of stream.

Signed-off-by: Yunchao Chen <chenyc@infthink.com>