mediacodec: change type of internal variables to bool.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>