summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/include/OMXNodeInstance.h
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2009-12-04 12:52:40 -0800
committerAndreas Huber <andih@google.com>2009-12-04 12:52:40 -0800
commitf0fb96c352f30b812a4903a1d783a715e1e817bd (patch)
treebf0573cd7eb7789a512c51f21c854c4e8b7fa017 /media/libstagefright/include/OMXNodeInstance.h
parentadf7d77752b3dbd47badc8819aa2674860d6ccba (diff)
downloadframeworks_av-f0fb96c352f30b812a4903a1d783a715e1e817bd.zip
frameworks_av-f0fb96c352f30b812a4903a1d783a715e1e817bd.tar.gz
frameworks_av-f0fb96c352f30b812a4903a1d783a715e1e817bd.tar.bz2
Enable proper cleanup of OMX nodes managed through stagefright.
Diffstat (limited to 'media/libstagefright/include/OMXNodeInstance.h')
-rw-r--r--media/libstagefright/include/OMXNodeInstance.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/media/libstagefright/include/OMXNodeInstance.h b/media/libstagefright/include/OMXNodeInstance.h
index 09a8816..19d3940 100644
--- a/media/libstagefright/include/OMXNodeInstance.h
+++ b/media/libstagefright/include/OMXNodeInstance.h
@@ -26,6 +26,7 @@
namespace android {
class IOMXObserver;
+struct OMXMaster;
struct OMXNodeInstance {
OMXNodeInstance(
@@ -37,7 +38,7 @@ struct OMXNodeInstance {
sp<IOMXObserver> observer();
OMX::node_id nodeID();
- status_t freeNode();
+ status_t freeNode(OMXMaster *master);
status_t sendCommand(OMX_COMMANDTYPE cmd, OMX_S32 param);
status_t getParameter(OMX_INDEXTYPE index, void *params, size_t size);
@@ -72,7 +73,7 @@ struct OMXNodeInstance {
const char *parameterName, OMX_INDEXTYPE *index);
void onMessage(const omx_message &msg);
- void onObserverDied();
+ void onObserverDied(OMXMaster *master);
void onGetHandleFailed();
static OMX_CALLBACKTYPE kCallbacks;