Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da153975 authored by Elliott Hughes's avatar Elliott Hughes
Browse files

Use gettid directly.

Bug: 17048545
Change-Id: I5ae40c2de1afc2a59f0b28e81c25f0c404368408
parent 5a192121
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);