private void release() {
        if(mPlayer != null) {
            mPlayer.release();
            mPlayer = null;
        }
        mCurrentState = STATE_IDLE;
        mTargetState = STATE_IDLE;
    }
Resizes the video view according to the video size to keep aspect ratio.
Code copied from {@link android.widget.VideoView#onMeasure(int, int)}.
MediaPlayer/src/main/java/net/protyposis/android/mediaplayer/VideoView.java