[Android] Video player: sanity check

Geoffrey Métais git at videolan.org
Thu Apr 25 16:30:04 CEST 2019


vlc-android | branch: 3.1.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Apr 25 10:55:05 2019 +0200| [1fff2f5673e6e230c52bfc99d2117fc73f3492de] | committer: Geoffrey Métais

Video player: sanity check

> https://code.videolan.org/videolan/vlc-android/commit/1fff2f5673e6e230c52bfc99d2117fc73f3492de
---

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

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 0ca5b6121..3fd80a01b 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1457,6 +1457,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IPlaybackS
                         WorkersKt.runIO(new Runnable() {
                             @Override
                             public void run() {
+                                if (mService == null) return;
                                 int audioTrack = (int) media.getMetaLong(MediaWrapper.META_AUDIOTRACK);
                                 if (audioTrack != 0 || mCurrentAudioTrack != -2)
                                     mService.setAudioTrack(media.getId() == 0L ? mCurrentAudioTrack : audioTrack);



More information about the Android mailing list