[Android] Check media time if service time is 0
Geoffrey Métais
git at videolan.org
Mon Jun 27 16:34:07 CEST 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Jun 27 16:27:49 2016 +0200| [0d7f1165d1e15df491859e02f994cb18abe10b07] | committer: Geoffrey Métais
Check media time if service time is 0
> https://code.videolan.org/videolan/vlc-android/commit/0d7f1165d1e15df491859e02f994cb18abe10b07
---
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 3 ++-
1 file changed, 2 insertions(+), 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 d3e44fd..1edaf2a 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -2500,7 +2500,8 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
if (time > mForcedTime)
mLastTime = mForcedTime = -1;
}
- }
+ } else if (time == 0)
+ time = (int) mService.getCurrentMediaWrapper().getTime();
return mForcedTime == -1 ? time : mForcedTime;
}
More information about the Android
mailing list