summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/omx
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2010-01-15 15:28:19 -0800
committerAndreas Huber <andih@google.com>2010-01-19 10:57:57 -0800
commit7eaa9c9385535b651064e02d05a8ffa4b2359281 (patch)
treeda5f6ba264cd97c4fa08cdcc0666ca2b5cc7175f /media/libstagefright/omx
parenta2ce85733c8e42c30927eefe3ff4e4bd36515041 (diff)
downloadframeworks_av-7eaa9c9385535b651064e02d05a8ffa4b2359281.zip
frameworks_av-7eaa9c9385535b651064e02d05a8ffa4b2359281.tar.gz
frameworks_av-7eaa9c9385535b651064e02d05a8ffa4b2359281.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.cpp4
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();