Fix video playback in unexpected state issue.

Video playback will hang by omx codec runs in malformed states.

Signed-off-by: Yunchao Chen <chenyc@infthink.com>