Release mediaplayer if the current state is not suspending. Fix for bug 2480093.

This commit is contained in:
Gloria Wang
2010-03-05 10:14:33 -08:00
parent 55535c83fd
commit efb882cf75

View File

@@ -484,6 +484,9 @@ public class VideoView extends SurfaceView implements MediaPlayerControl {
// after we return from this we can't use the surface any more
mSurfaceHolder = null;
if (mMediaController != null) mMediaController.hide();
if (mCurrentState != STATE_SUSPEND) {
release(true);
}
}
};