diff options
author | Haynes Mathew George <hgeorge@codeaurora.org> | 2015-11-04 17:14:42 -0800 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2015-11-30 18:58:53 -0800 |
commit | c263222162f8b1b31e8bd57de2f68894782b9fce (patch) | |
tree | c8344942faeb9046062b910b88a4f1181f0253d2 /media/libstagefright/include | |
parent | d15a8bd157cb531716bd3e15561f557e74588801 (diff) | |
download | frameworks_av-c263222162f8b1b31e8bd57de2f68894782b9fce.zip frameworks_av-c263222162f8b1b31e8bd57de2f68894782b9fce.tar.gz frameworks_av-c263222162f8b1b31e8bd57de2f68894782b9fce.tar.bz2 |
stagefright: omx: delay observer death handling
Delay observer death handling to give the component
a chance to observe pending freeNode (in other words,
allow component to observe mDying = true).
Change-Id: I5f70e9b04a1d2decc7abd0d2a9588f2298519cbb
Diffstat (limited to 'media/libstagefright/include')
-rw-r--r-- | media/libstagefright/include/OMXNodeInstance.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/include/OMXNodeInstance.h b/media/libstagefright/include/OMXNodeInstance.h index e5fb45b..a19d2b3 100644 --- a/media/libstagefright/include/OMXNodeInstance.h +++ b/media/libstagefright/include/OMXNodeInstance.h @@ -145,8 +145,8 @@ private: OMX::node_id mNodeID; OMX_HANDLETYPE mHandle; sp<IOMXObserver> mObserver; - bool mDying; bool mIsSecure; + atomic_bool mDying; // Lock only covers mGraphicBufferSource. We can't always use mLock // because of rare instances where we'd end up locking it recursively. |