mediacodec: factorize release_output_buffer
mediacodec: don't loop in GetOutput

Output thread is already looping.