summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-08-18 10:20:53 -0700
committerElliott Hughes <enh@google.com>2014-08-18 10:20:53 -0700
commitda153975581fb3161a30452348a5b26ee72d9255 (patch)
tree7bf024477f1e2f489ebb9c5b7abe86832e5df6c0 /media
parent5a192121e99a740dab6df2b6550e02ef18f5dbc7 (diff)
downloadframeworks_av-da153975581fb3161a30452348a5b26ee72d9255.zip
frameworks_av-da153975581fb3161a30452348a5b26ee72d9255.tar.gz
frameworks_av-da153975581fb3161a30452348a5b26ee72d9255.tar.bz2
Use gettid directly.
Bug: 17048545 Change-Id: I5ae40c2de1afc2a59f0b28e81c25f0c404368408
Diffstat (limited to 'media')
-rw-r--r--media/libstagefright/ACodec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/ACodec.cpp b/media/libstagefright/ACodec.cpp
index ed1de58..1a87e9c 100644
--- a/media/libstagefright/ACodec.cpp
+++ b/media/libstagefright/ACodec.cpp
@@ -3654,7 +3654,7 @@ bool ACodec::UninitializedState::onAllocateComponent(const sp<AMessage> &msg) {
componentName = matchingCodecs.itemAt(matchIndex).mName.string();
quirks = matchingCodecs.itemAt(matchIndex).mQuirks;
- pid_t tid = androidGetTid();
+ pid_t tid = gettid();
int prevPriority = androidGetThreadPriority(tid);
androidSetThreadPriority(tid, ANDROID_PRIORITY_FOREGROUND);
status_t err = omx->allocateNode(componentName.c_str(), observer, &node);