am f7b33e86
: Merge "MediaPlayer: fix int overflow issue in MediaTimeProvider" into klp-dev
* commit 'f7b33e8656599ed3e0edd834a03a0366b0f655bb': MediaPlayer: fix int overflow issue in MediaTimeProvider
This commit is contained in:
@ -3128,7 +3128,7 @@ public class MediaPlayer implements SubtitleController.Listener
|
|||||||
if (refreshTime ||
|
if (refreshTime ||
|
||||||
nanoTime >= mLastNanoTime + MAX_NS_WITHOUT_POSITION_CHECK) {
|
nanoTime >= mLastNanoTime + MAX_NS_WITHOUT_POSITION_CHECK) {
|
||||||
try {
|
try {
|
||||||
mLastTimeUs = mPlayer.getCurrentPosition() * 1000;
|
mLastTimeUs = mPlayer.getCurrentPosition() * 1000L;
|
||||||
mPaused = !mPlayer.isPlaying();
|
mPaused = !mPlayer.isPlaying();
|
||||||
if (DEBUG) Log.v(TAG, (mPaused ? "paused" : "playing") + " at " + mLastTimeUs);
|
if (DEBUG) Log.v(TAG, (mPaused ? "paused" : "playing") + " at " + mLastTimeUs);
|
||||||
} catch (IllegalStateException e) {
|
} catch (IllegalStateException e) {
|
||||||
|
Reference in New Issue
Block a user