[Android] Do not seek while switching from audio to video

Geoffrey Métais git at videolan.org
Thu Dec 3 17:50:45 CET 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Dec  3 17:49:34 2015 +0100| [9daf9d8b29f61e3dd130bd369974831b7290438b] | committer: Geoffrey Métais

Do not seek while switching from audio to video

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

 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 6e2db08..69865f2 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -2860,7 +2860,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
                 // Consume fromStart option after first use to prevent
                 // restarting again when playback is paused.
                 intent.putExtra(PLAY_EXTRA_FROM_START, false);
-                if (fromStart)
+                if (fromStart || mService.isPlaying())
                     media.setTime(0l);
 
                 mLastAudioTrack = media.getAudioTrack();



More information about the Android mailing list