diff options
author | Andreas Huber <andih@google.com> | 2010-01-15 15:28:19 -0800 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-01-19 10:57:57 -0800 |
commit | f1fe064d735698b09e4bc7b3a10e4dc3dba9a1d9 (patch) | |
tree | 1d8e2e0a407c8a11184c8a8e7a9f05847c03b00c /media/libstagefright/omx | |
parent | 0a2d8709e4badeeb892b325c1b6fd52ad16f9c7d (diff) | |
download | frameworks_base-f1fe064d735698b09e4bc7b3a10e4dc3dba9a1d9.zip frameworks_base-f1fe064d735698b09e4bc7b3a10e4dc3dba9a1d9.tar.gz frameworks_base-f1fe064d735698b09e4bc7b3a10e4dc3dba9a1d9.tar.bz2 |
Avoid unnecessary buffer copying if at all possible, detect if running in the mediaserver process.
Diffstat (limited to 'media/libstagefright/omx')
-rw-r--r-- | media/libstagefright/omx/OMX.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/media/libstagefright/omx/OMX.cpp b/media/libstagefright/omx/OMX.cpp index 0d617a5..2121321 100644 --- a/media/libstagefright/omx/OMX.cpp +++ b/media/libstagefright/omx/OMX.cpp @@ -164,6 +164,10 @@ void OMX::binderDied(const wp<IBinder> &the_late_who) { instance->onObserverDied(mMaster); } +bool OMX::livesLocally(pid_t pid) { + return pid == getpid(); +} + status_t OMX::listNodes(List<ComponentInfo> *list) { list->clear(); |