FIX: [mediacodec] reset if we are out of input buffers

I've seen instances where we run out of input buffers for some unknown reason.
I haven't been able to pinpoint a single root cause, but this allows to recover by forcing a flush.

/cc @davilla