diff options
author | Andreas Huber <andih@google.com> | 2012-05-22 10:51:06 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2012-05-22 10:51:06 -0700 |
commit | a6490c65f93e1cbe969fba499978e8d64214108a (patch) | |
tree | cdc47dfff329a4124b8a53d9bd9c3428ac7521ad /media | |
parent | 4575beb3dea80e271eaa6619234fdc02e914e6e6 (diff) | |
download | frameworks_av-a6490c65f93e1cbe969fba499978e8d64214108a.zip frameworks_av-a6490c65f93e1cbe969fba499978e8d64214108a.tar.gz frameworks_av-a6490c65f93e1cbe969fba499978e8d64214108a.tar.bz2 |
Only mark the audio player as started if it did so successfully.
Change-Id: I4683f5ca243f9f1b80990028d225d0f6c5973899
related-to-bug: 6500580
Diffstat (limited to 'media')
-rw-r--r-- | media/libstagefright/AwesomePlayer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libstagefright/AwesomePlayer.cpp b/media/libstagefright/AwesomePlayer.cpp index 5a5a00e..892da92 100644 --- a/media/libstagefright/AwesomePlayer.cpp +++ b/media/libstagefright/AwesomePlayer.cpp @@ -969,8 +969,6 @@ status_t AwesomePlayer::startAudioPlayer_l(bool sendErrorNotification) { } if (!(mFlags & AUDIOPLAYER_STARTED)) { - modifyFlags(AUDIOPLAYER_STARTED, SET); - bool wasSeeking = mAudioPlayer->isSeeking(); // We've already started the MediaSource in order to enable @@ -986,6 +984,8 @@ status_t AwesomePlayer::startAudioPlayer_l(bool sendErrorNotification) { return err; } + modifyFlags(AUDIOPLAYER_STARTED, SET); + if (wasSeeking) { CHECK(!mAudioPlayer->isSeeking()); |