Type Reason Java.Lang.IllegalStateException if in the Uninitialized state.
Finish the decode/encode session, note that the codec instance remains active and ready to be MediaCodec.Started again. To ensure that it is available to other client call MediaCodec.Release and don't just rely on garbage collection to eventually do this for you.