Skip posting DecodeTask of resolution changing while resetting

The resolution changing event may happen while resetting (|kState_| is
kResetting) or flushing (kFlushing).

In this case we do not change state and post DecodeTask, otherwise
|kState_| will be no more kResetting/kFlushing and FinishReset()/FinishFlush() will not been
done. And the stream will still be resumed in FinishReset().

BUG=b/29930597
TEST=Loop run the following items to make sure resolution change smoothly while resetting and flushing.
1. xts google.exoplayer
2. cts AdaptivePlaybackTest#testH264_XXXXX
3. autotest video_VideoSeek.h264 and video_VideoSeek.h264.switchres

Review-Url: https://codereview.chromium.org/2151183002
Cr-Commit-Position: refs/heads/master@{#406784}
1 file changed