Input thread exit early when decoding a big block finished in decoder thread
when demux finished in input thread,we should wait for draining the data which is not played. otherwise it will cause that input thread exit early and the song can't be played completely.