summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2009-10-15 13:46:54 -0700
committerAndreas Huber <andih@google.com>2009-10-16 11:22:43 -0700
commit318ad9c1d9d6515026dfc2c021359d27decaa7a1 (patch)
tree28a58c4e3f20528b01c2abd08ba5f62d8755650c /cmds
parent89e69da4d86348409994c9dafbbb2634ccd7c196 (diff)
downloadframeworks_av-318ad9c1d9d6515026dfc2c021359d27decaa7a1.zip
frameworks_av-318ad9c1d9d6515026dfc2c021359d27decaa7a1.tar.gz
frameworks_av-318ad9c1d9d6515026dfc2c021359d27decaa7a1.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.cpp6
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) {