[Android] Video: update media length from playbackservice

Geoffrey Métais git at videolan.org
Tue Feb 6 11:37:59 CET 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Feb  6 11:37:25 2018 +0100| [4b06c385b5805399099f63aee169d368aaf10592] | committer: Geoffrey Métais

Video: update media length from playbackservice

> https://code.videolan.org/videolan/vlc-android/commit/4b06c385b5805399099f63aee169d368aaf10592
---

 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 713126592..106bdef2b 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1722,7 +1722,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
         updateOverlayPausePlay();
         updateNavStatus();
         final MediaWrapper mw = mService.getCurrentMediaWrapper();
-        mMediaLength.set(mw.getLength());
+        mMediaLength.set(mService.getLength());
         if (!mw.hasFlag(MediaWrapper.MEDIA_PAUSED))
             mHandler.sendEmptyMessageDelayed(FADE_OUT, OVERLAY_TIMEOUT);
         else {



More information about the Android mailing list