public void releasePlayer() { if (libvlc == null) return; mEventHandler.removeHandler(mHandler); libvlc.stop(); libvlc.detachSurface(); libvlc.closeAout(); libvlc.destroy(); libvlc = null; mVideoWidth = 0; mVideoHeight = 0; }
public void releasePlayer() { if (libvlc == null) return; mEventHandler.removeHandler(mHandler); libvlc.stop(); libvlc.detachSurface(); holder = null; libvlc.closeAout(); libvlc.destroy(); libvlc = null; mVideoWidth = 0; mVideoHeight = 0; }