Merge "ACodec: handle errors related to native window." into lmp-dev