diff options
author | Andreas Huber <andih@google.com> | 2009-10-15 13:46:54 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2009-10-16 11:22:43 -0700 |
commit | 784202ea115603004b067aacf6a57bf5d2a7d53b (patch) | |
tree | 0e32ad4b315f936a80ac1af63ae2e919e6ffe090 /cmds | |
parent | d21b725627e68b8ffcae38729196e8c1bd5d0d15 (diff) | |
download | frameworks_base-784202ea115603004b067aacf6a57bf5d2a7d53b.zip frameworks_base-784202ea115603004b067aacf6a57bf5d2a7d53b.tar.gz frameworks_base-784202ea115603004b067aacf6a57bf5d2a7d53b.tar.bz2 |
Reimplement the OMX backend for stagefright.
Besides a major cleanup and refactoring, OMX is now a singleton living in the media server, it listens for death notifications of node observers/clients that allocated OMX nodes and performs/attempts cleanup.
Changed APIs to conform to the rest of the system.
Diffstat (limited to 'cmds')
-rw-r--r-- | cmds/stagefright/stagefright.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmds/stagefright/stagefright.cpp b/cmds/stagefright/stagefright.cpp index 4d4d013..7dc99c1 100644 --- a/cmds/stagefright/stagefright.cpp +++ b/cmds/stagefright/stagefright.cpp @@ -273,7 +273,7 @@ int main(int argc, char **argv) { CHECK(service.get() != NULL); - sp<IOMX> omx = service->createOMX(); + sp<IOMX> omx = service->getOMX(); CHECK(omx.get() != NULL); const char *kMimeTypes[] = { @@ -319,11 +319,11 @@ int main(int argc, char **argv) { CHECK(service.get() != NULL); - sp<IOMX> omx = service->createOMX(); + sp<IOMX> omx = service->getOMX(); CHECK(omx.get() != NULL); List<String8> list; - omx->list_nodes(&list); + omx->listNodes(&list); for (List<String8>::iterator it = list.begin(); it != list.end(); ++it) { |