Fix crash when videoView to remove in android

This commit is contained in:
gin0606 2014-06-12 16:47:08 +09:00
parent bb5471ca8b
commit 80c5349d75
1 changed files with 1 additions and 1 deletions

View File

@ -399,7 +399,7 @@ public class Cocos2dxVideoView extends SurfaceView implements MediaPlayerControl
mCurrentState = STATE_PLAYBACK_COMPLETED; mCurrentState = STATE_PLAYBACK_COMPLETED;
mTargetState = STATE_PLAYBACK_COMPLETED; mTargetState = STATE_PLAYBACK_COMPLETED;
mp.release(); release(true);
if (mOnVideoEventListener != null) { if (mOnVideoEventListener != null) {
mOnVideoEventListener.onVideoEvent(mViewTag,EVENT_COMPLETED); mOnVideoEventListener.onVideoEvent(mViewTag,EVENT_COMPLETED);
} }