[Android] VideoPlayer: disconnect after stop

Thomas Guillem git at videolan.org
Thu Jun 25 14:42:14 CEST 2015


vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Jun 25 14:40:54 2015 +0200| [c46cf6b17aed71d3928e5ccee89c9224848fc4bb] | committer: Thomas Guillem

VideoPlayer: disconnect after stop

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=c46cf6b17aed71d3928e5ccee89c9224848fc4bb
---

 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index 8d70a36..9f558c3 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -613,7 +613,6 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVideoPlay
     @Override
     protected void onStop() {
         super.onStop();
-        mClient.disconnect();
 
         if (mAlertDialog != null && mAlertDialog.isShowing())
             mAlertDialog.dismiss();
@@ -630,6 +629,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVideoPlay
             mPresentation = null;
         }
         restoreBrightness();
+        mClient.disconnect();
     }
 
     @TargetApi(android.os.Build.VERSION_CODES.FROYO)



More information about the Android mailing list