diff options
author | Andreas Huber <andih@google.com> | 2011-03-16 15:42:45 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2011-03-16 15:42:45 -0700 |
commit | f8a5b5574030e48c6b6c289132a0009aca0a609e (patch) | |
tree | 8d03e49c1f017afe5cab5902272d00f04670c6d7 /media | |
parent | 83361fe18bd6a468835985819fcf1317db1cc35a (diff) | |
download | frameworks_base-f8a5b5574030e48c6b6c289132a0009aca0a609e.zip frameworks_base-f8a5b5574030e48c6b6c289132a0009aca0a609e.tar.gz frameworks_base-f8a5b5574030e48c6b6c289132a0009aca0a609e.tar.bz2 |
Don't send the seek-complete notification twice.
Change-Id: Ie994de2d57e20dde12b8d59af4968d03569c7efa
related-to-bug: 3489432
Diffstat (limited to 'media')
-rw-r--r-- | media/libstagefright/AwesomePlayer.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/media/libstagefright/AwesomePlayer.cpp b/media/libstagefright/AwesomePlayer.cpp index 99129b6..7a00d7a 100644 --- a/media/libstagefright/AwesomePlayer.cpp +++ b/media/libstagefright/AwesomePlayer.cpp @@ -1119,7 +1119,6 @@ void AwesomePlayer::seekAudioIfNecessary_l() { mWatchForAudioSeekComplete = true; mWatchForAudioEOS = true; - mSeekNotificationSent = false; if (mDecryptHandle != NULL) { mDrmManagerClient->setPlaybackStatus(mDecryptHandle, @@ -1244,11 +1243,11 @@ void AwesomePlayer::finishSeekIfNecessary(int64_t videoTimeUs) { // If we're playing video only, report seek complete now, // otherwise audio player will notify us later. notifyListener_l(MEDIA_SEEK_COMPLETE); + mSeekNotificationSent = true; } mFlags |= FIRST_FRAME; mSeeking = NO_SEEK; - mSeekNotificationSent = false; if (mDecryptHandle != NULL) { mDrmManagerClient->setPlaybackStatus(mDecryptHandle, |