summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/omx/SoftOMXPlugin.cpp
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2011-05-24 15:15:42 -0700
committerAndreas Huber <andih@google.com>2011-05-24 15:15:42 -0700
commit5a65e30064dc8dffa4f3d868f1c46038972c40c5 (patch)
treeba3fa8c6f095e6ca214d8465525a32738a26a8b5 /media/libstagefright/omx/SoftOMXPlugin.cpp
parentf2af5a2c607e71ff4cd39da28b077c0a68b206fe (diff)
downloadframeworks_av-5a65e30064dc8dffa4f3d868f1c46038972c40c5.zip
frameworks_av-5a65e30064dc8dffa4f3d868f1c46038972c40c5.tar.gz
frameworks_av-5a65e30064dc8dffa4f3d868f1c46038972c40c5.tar.bz2
Make sure all references to the decoder plugin are accounted for
before calling dlunload(). Change-Id: I59aa1d19edf566b8a86a6f73b1c2eeb47c96b0de related-to-bug: 4466387
Diffstat (limited to 'media/libstagefright/omx/SoftOMXPlugin.cpp')
-rw-r--r--media/libstagefright/omx/SoftOMXPlugin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/media/libstagefright/omx/SoftOMXPlugin.cpp b/media/libstagefright/omx/SoftOMXPlugin.cpp
index cfbcb96..04ca39e 100644
--- a/media/libstagefright/omx/SoftOMXPlugin.cpp
+++ b/media/libstagefright/omx/SoftOMXPlugin.cpp
@@ -127,6 +127,8 @@ OMX_ERRORTYPE SoftOMXPlugin::destroyComponentInstance(
(SoftOMXComponent *)
((OMX_COMPONENTTYPE *)component)->pComponentPrivate;
+ me->prepareForDestruction();
+
void *libHandle = me->libHandle();
CHECK_EQ(me->getStrongCount(), 1);