Skip to content

Commit

Permalink
Merge "stagefright: limit software renderer for actual OMX components…
Browse files Browse the repository at this point in the history
…" into pi-dev

am: 46ba387

Change-Id: I2b2efb7a359c33b4dad0a2969d607ad5ce5dea16
  • Loading branch information
Wonsik Kim authored and android-build-merger committed Jul 23, 2018
2 parents 963c4f8 + 46ba387 commit a4afbde
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion media/libstagefright/MediaCodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1943,7 +1943,9 @@ void MediaCodec::onMessageReceived(const sp<AMessage> &msg) {
mAnalyticsItem->setCString(kCodecCodec, mComponentName.c_str());
}

if (mComponentName.startsWith("OMX.google.")) {
const char *owner = mCodecInfo->getOwnerName();
if (mComponentName.startsWith("OMX.google.")
&& (owner == nullptr || strncmp(owner, "default", 8) == 0)) {
mFlags |= kFlagUsesSoftwareRenderer;
} else {
mFlags &= ~kFlagUsesSoftwareRenderer;
Expand Down

0 comments on commit a4afbde

Please sign in to comment.