diff options
author | Andreas Huber <andih@google.com> | 2010-03-26 10:17:17 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-03-26 10:17:17 -0700 |
commit | 252573cb821259e883843630e6d69317cfb76850 (patch) | |
tree | 20acfa4f8a8cb0eb57f2266600c3a7e801c997c7 /media/libstagefright/include | |
parent | 2911e8eff79572a896b24debb11f20d179bd6f83 (diff) | |
download | frameworks_base-252573cb821259e883843630e6d69317cfb76850.zip frameworks_base-252573cb821259e883843630e6d69317cfb76850.tar.gz frameworks_base-252573cb821259e883843630e6d69317cfb76850.tar.bz2 |
Finer-grained locking in AwesomePlayer, position and duration are now protected by a separate mutex that's only held for brief moments of time.
Change-Id: I989baf5a0ea8923985c560c2ec274abda0780242
related-to-bug: 2546577
Diffstat (limited to 'media/libstagefright/include')
-rw-r--r-- | media/libstagefright/include/AwesomePlayer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/include/AwesomePlayer.h b/media/libstagefright/include/AwesomePlayer.h index 610f913..c985dff 100644 --- a/media/libstagefright/include/AwesomePlayer.h +++ b/media/libstagefright/include/AwesomePlayer.h @@ -98,6 +98,7 @@ private: }; mutable Mutex mLock; + Mutex mMiscStateLock; OMXClient mClient; TimedEventQueue mQueue; @@ -155,7 +156,6 @@ private: void postBufferingEvent_l(); void postStreamDoneEvent_l(status_t status); void postCheckAudioStatusEvent_l(); - status_t getPosition_l(int64_t *positionUs); status_t play_l(); MediaBuffer *mLastVideoBuffer; |