MediaPlayer: fix int overflow issue in MediaTimeProvider

Bug: 13394783
Change-Id: I228ded5cf198852fda867d136cd8b1aacd8b6584
This commit is contained in:
Lajos Molnar
2014-03-10 17:21:49 -07:00
parent 5d3d4ee300
commit 0cab07d788

View File

@@ -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) {