summaryrefslogtreecommitdiff
path: root/libstagefrighthw/TIOMXPlugin.h
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2009-12-04 12:34:03 -0800
committerAndreas Huber <andih@google.com>2009-12-04 12:34:03 -0800
commitf40810585b61295f84d7d6b4e63ef935222bf18e (patch)
tree472824fbb3139afad9a01c6d2e330605a3b117c5 /libstagefrighthw/TIOMXPlugin.h
parent17e995d39771569792c528f3dea559c83f0fc238 (diff)
downloadomap3-f40810585b61295f84d7d6b4e63ef935222bf18e.tar.gz
Support for properly freeing an OMX node instance, now that the API for it exists.
Diffstat (limited to 'libstagefrighthw/TIOMXPlugin.h')
-rw-r--r--libstagefrighthw/TIOMXPlugin.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libstagefrighthw/TIOMXPlugin.h b/libstagefrighthw/TIOMXPlugin.h
index 2bd4a80..8255e58 100644
--- a/libstagefrighthw/TIOMXPlugin.h
+++ b/libstagefrighthw/TIOMXPlugin.h
@@ -32,6 +32,9 @@ struct TIOMXPlugin : public OMXPluginBase {
OMX_PTR appData,
OMX_COMPONENTTYPE **component);
+ virtual OMX_ERRORTYPE destroyComponentInstance(
+ OMX_COMPONENTTYPE *component);
+
virtual OMX_ERRORTYPE enumerateComponents(
OMX_STRING name,
size_t size,
@@ -48,10 +51,13 @@ private:
typedef OMX_ERRORTYPE (*GetHandleFunc)(
OMX_HANDLETYPE *, OMX_STRING, OMX_PTR, OMX_CALLBACKTYPE *);
+ typedef OMX_ERRORTYPE (*FreeHandleFunc)(OMX_HANDLETYPE *);
+
InitFunc mInit;
DeinitFunc mDeinit;
ComponentNameEnumFunc mComponentNameEnum;
GetHandleFunc mGetHandle;
+ FreeHandleFunc mFreeHandle;
TIOMXPlugin(const TIOMXPlugin &);
TIOMXPlugin &operator=(const TIOMXPlugin &);