diff options
author | Andreas Huber <andih@google.com> | 2011-05-24 15:58:09 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-05-24 15:58:09 -0700 |
commit | 931db87f8fd6fa1fd5b918f3b1fc107e8dca2e0e (patch) | |
tree | e4b0ad37a5596a86f80e4237ba1c1c4831d51030 /media/libstagefright/omx/SimpleSoftOMXComponent.cpp | |
parent | 90d99759c4607106adcf1dbcc8546aedb2ff089f (diff) | |
parent | 5a65e30064dc8dffa4f3d868f1c46038972c40c5 (diff) | |
download | frameworks_av-931db87f8fd6fa1fd5b918f3b1fc107e8dca2e0e.zip frameworks_av-931db87f8fd6fa1fd5b918f3b1fc107e8dca2e0e.tar.gz frameworks_av-931db87f8fd6fa1fd5b918f3b1fc107e8dca2e0e.tar.bz2 |
Merge "Make sure all references to the decoder plugin are accounted for"
Diffstat (limited to 'media/libstagefright/omx/SimpleSoftOMXComponent.cpp')
-rw-r--r-- | media/libstagefright/omx/SimpleSoftOMXComponent.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/media/libstagefright/omx/SimpleSoftOMXComponent.cpp b/media/libstagefright/omx/SimpleSoftOMXComponent.cpp index 179b2a0..f7330f3 100644 --- a/media/libstagefright/omx/SimpleSoftOMXComponent.cpp +++ b/media/libstagefright/omx/SimpleSoftOMXComponent.cpp @@ -45,7 +45,11 @@ SimpleSoftOMXComponent::SimpleSoftOMXComponent( PRIORITY_AUDIO); } -SimpleSoftOMXComponent::~SimpleSoftOMXComponent() { +void SimpleSoftOMXComponent::prepareForDestruction() { + // The looper's queue may still contain messages referencing this + // object. Make sure those are flushed before returning so that + // a subsequent dlunload() does not pull out the rug from under us. + mLooper->unregisterHandler(mHandler->id()); mLooper->stop(); } |