diff options
author | Andreas Huber <andih@google.com> | 2010-10-08 10:16:24 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-10-08 10:16:24 -0700 |
commit | 70f521de2675ce6eedf4b22beed94ea1289b0f38 (patch) | |
tree | fe477ecc5b9fbec01d41a458cc17bcf867f9809d /media/libstagefright/AwesomePlayer.cpp | |
parent | f4ea1f92bc56a8ffceddba0dbd3979fe0219b13c (diff) | |
download | frameworks_av-70f521de2675ce6eedf4b22beed94ea1289b0f38.zip frameworks_av-70f521de2675ce6eedf4b22beed94ea1289b0f38.tar.gz frameworks_av-70f521de2675ce6eedf4b22beed94ea1289b0f38.tar.bz2 |
Disable 10secs forward/backward seeking for rtsp as seek is a very expensive operation there. Decouple the 10sec forward/backward button functionality from seekbar functionality.
Change-Id: I016e79b688774f8ee91ac53216197b5fb9cb41b2
related-to-bug: 3073955
Diffstat (limited to 'media/libstagefright/AwesomePlayer.cpp')
-rw-r--r-- | media/libstagefright/AwesomePlayer.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/media/libstagefright/AwesomePlayer.cpp b/media/libstagefright/AwesomePlayer.cpp index 8c17aab..53543b3 100644 --- a/media/libstagefright/AwesomePlayer.cpp +++ b/media/libstagefright/AwesomePlayer.cpp @@ -868,9 +868,7 @@ status_t AwesomePlayer::getPosition(int64_t *positionUs) { } status_t AwesomePlayer::seekTo(int64_t timeUs) { - if (mExtractorFlags - & (MediaExtractor::CAN_SEEK_FORWARD - | MediaExtractor::CAN_SEEK_BACKWARD)) { + if (mExtractorFlags & MediaExtractor::CAN_SEEK) { Mutex::Autolock autoLock(mLock); return seekTo_l(timeUs); } |