[vlc-devel] [PATCH] android: Stop playback when VideoPlayerActivity is destroyed.
Garret Kelly
garret.kelly at gmail.com
Sun Jul 3 09:15:44 CEST 2011
Resolves http://trac.videolan.org/vlc/ticket/5010
---
.../videolan/vlc/android/VideoPlayerActivity.java | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/extras/package/android/vlc-android/src/org/videolan/vlc/android/VideoPlayerActivity.java b/extras/package/android/vlc-android/src/org/videolan/vlc/android/VideoPlayerActivity.java
index 47f4a92..12de3b9 100644
--- a/extras/package/android/vlc-android/src/org/videolan/vlc/android/VideoPlayerActivity.java
+++ b/extras/package/android/vlc-android/src/org/videolan/vlc/android/VideoPlayerActivity.java
@@ -140,8 +140,10 @@ public class VideoPlayerActivity extends Activity {
@Override
protected void onDestroy() {
- if (mLibVLC != null)
+ if (mLibVLC != null) {
+ mLibVLC.stop();
mLibVLC.detachEventManager();
+ }
super.onDestroy();
}
--
1.7.1
More information about the vlc-devel
mailing list