[Android] Fix VLC not pausing on audiofocus loss
Geoffrey Métais
git at videolan.org
Mon Apr 4 10:46:21 CEST 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Apr 4 10:45:40 2016 +0200| [c2878b96b41eb9ad84efbb7684608db1f2773bc0] | committer: Geoffrey Métais
Fix VLC not pausing on audiofocus loss
> https://code.videolan.org/videolan/vlc-android/commit/c2878b96b41eb9ad84efbb7684608db1f2773bc0
---
vlc-android/src/org/videolan/vlc/PlaybackService.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index 4f155d1..3057718 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -364,8 +364,7 @@ public class PlaybackService extends Service implements IVLCVout.Callback {
Log.i(TAG, "AUDIOFOCUS_LOSS");
// Pause playback
changeAudioFocus(false);
- if (wasPlaying)
- pause();
+ pause();
break;
case AudioManager.AUDIOFOCUS_LOSS_TRANSIENT:
Log.i(TAG, "AUDIOFOCUS_LOSS_TRANSIENT");
More information about the Android
mailing list