mediacodec: add missing exception handling code after dequeue{Input, Output}Buffer

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
mediacodec: handle MediaCodec exceptions while decoding

If an exception is thrown when using the MediaCodec API, the decoder
module enters an error state and will not attempt to queue/dequeue
buffers anymore. The error state is notified to the Java using the JNI
function jni_EventHardwareAccelerationError().

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>