[Android] fix crash when restarting libvlc during audio playback
Sébastien Toque
git at videolan.org
Mon Nov 18 20:45:38 CET 2013
vlc-ports/android | branch: master | Sébastien Toque <xilasz at gmail.com> | Mon Nov 18 20:45:32 2013 +0100| [6effaec41bb3c2419bb1825103e49e0d0dcd5aa4] | committer: Sébastien Toque
fix crash when restarting libvlc during audio playback
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=6effaec41bb3c2419bb1825103e49e0d0dcd5aa4
---
vlc-android/src/org/videolan/vlc/AudioService.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/vlc-android/src/org/videolan/vlc/AudioService.java b/vlc-android/src/org/videolan/vlc/AudioService.java
index 971df76..e790553 100644
--- a/vlc-android/src/org/videolan/vlc/AudioService.java
+++ b/vlc-android/src/org/videolan/vlc/AudioService.java
@@ -417,6 +417,7 @@ public class AudioService extends Service {
break;
case EventHandler.MediaPlayerStopped:
Log.i(TAG, "MediaPlayerStopped");
+ service.mCurrentIndex = -1;
service.executeUpdate();
service.setRemoteControlClientPlaybackState(EventHandler.MediaPlayerStopped);
if (service.mWakeLock.isHeld())
More information about the Android
mailing list