diff options
| -rw-r--r-- | core/java/android/widget/VideoView.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/widget/VideoView.java b/core/java/android/widget/VideoView.java index c2517a849604..fb8b5aa938da 100644 --- a/core/java/android/widget/VideoView.java +++ b/core/java/android/widget/VideoView.java @@ -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); + } } }; |