From 0cab07d78844b71caa2b33d2fac3ab85de77ac2a Mon Sep 17 00:00:00 2001 From: Lajos Molnar Date: Mon, 10 Mar 2014 17:21:49 -0700 Subject: MediaPlayer: fix int overflow issue in MediaTimeProvider Bug: 13394783 Change-Id: I228ded5cf198852fda867d136cd8b1aacd8b6584 --- media/java/android/media/MediaPlayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'media') diff --git a/media/java/android/media/MediaPlayer.java b/media/java/android/media/MediaPlayer.java index 706258a..2c16b5e 100644 --- a/media/java/android/media/MediaPlayer.java +++ b/media/java/android/media/MediaPlayer.java @@ -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) { -- cgit v1.1