Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f7b33e86 authored by Lajos Molnar's avatar Lajos Molnar Committed by Android (Google) Code Review
Browse files

Merge "MediaPlayer: fix int overflow issue in MediaTimeProvider" into klp-dev

parents 55b523cc 0cab07d7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3128,7 +3128,7 @@ public class MediaPlayer implements SubtitleController.Listener
                if (refreshTime ||
                        nanoTime >= mLastNanoTime + MAX_NS_WITHOUT_POSITION_CHECK) {
                    try {
                        mLastTimeUs = mPlayer.getCurrentPosition() * 1000;
                        mLastTimeUs = mPlayer.getCurrentPosition() * 1000L;
                        mPaused = !mPlayer.isPlaying();
                        if (DEBUG) Log.v(TAG, (mPaused ? "paused" : "playing") + " at " + mLastTimeUs);
                    } catch (IllegalStateException e) {