Merge "MediaCodec: handle errors during flushing." into lmp-dev