mediacodec: change type of internal variables to bool.