public void release() {
        mCodec.stop();
        mCodec.release();
        Log.d(TAG, "decoder released");
    }
Releases the codec and its resources. Must be called when the decoder is no longer in use.
MediaPlayer/src/main/java/net/protyposis/android/mediaplayer/MediaCodecDecoder.java