diff options
author | Glenn Kasten <gkasten@google.com> | 2011-11-29 16:43:28 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-11-29 16:43:28 -0800 |
commit | 30f49ce0c8f9ee464e87552a6fb4fb3d6b09959c (patch) | |
tree | c99620fb0f3729c3c9166594c93af75e8494dce1 | |
parent | 2917f475d6f2058ed177ee2a51fdf7069645ba3e (diff) | |
parent | 40cf471fa7b87f020a5f7a10a019dee9bb29be71 (diff) | |
download | android_system_media-30f49ce0c8f9ee464e87552a6fb4fb3d6b09959c.tar.gz android_system_media-30f49ce0c8f9ee464e87552a6fb4fb3d6b09959c.tar.bz2 android_system_media-30f49ce0c8f9ee464e87552a6fb4fb3d6b09959c.zip |
Merge "Bug 5622637 missing XA_PLAYEVENT_HEADATPOS" into ics-mr1
-rw-r--r-- | wilhelm/src/android/android_GenericPlayer.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/wilhelm/src/android/android_GenericPlayer.cpp b/wilhelm/src/android/android_GenericPlayer.cpp index 10e613fc..85a8b1a7 100644 --- a/wilhelm/src/android/android_GenericPlayer.cpp +++ b/wilhelm/src/android/android_GenericPlayer.cpp @@ -600,6 +600,12 @@ void GenericPlayer::updateOneShot(int positionMs) } } + // if we observe the player position going backwards, even without without a seek, then recover + if (mObservedPositionMs != ANDROID_UNKNOWN_TIME && positionMs < mObservedPositionMs) { + mDeliveredNewPosMs = ANDROID_UNKNOWN_TIME; + mObservedPositionMs = positionMs; + } + // delayUs is the expected delay between current position and marker; // the default is infinity in case there are no upcoming marker(s) int64_t delayUs = -1; |