stagefright: Fix OmxInfoBuilder assignment of kFlagIsHardwareAccelerated

OmxInfoBuilder would only add kFlagIsHardwareAccelerated to attr if
attribute::software-code exists in the node attributes

This change inverts this logic

Author: Michael Gonzalez <michgonz@codeaurora.org>

CRs-Fixed: 2430504
Bug: 132939417
Change-Id: I9813098c062732b2a992350d72d59e52fd67292b
gugelfrei
Praveen Chavan 5 years ago committed by Lajos Molnar
parent a69eacc42c
commit 8e6c71f513

@ -193,7 +193,7 @@ status_t OmxInfoBuilder::buildMediaCodecList(MediaCodecListWriter* writer) {
// treat OMX.google codecs as non-hardware-accelerated and non-vendor
if (!isSoftware) {
attrs |= MediaCodecInfo::kFlagIsVendor;
if (std::count_if(
if (!std::count_if(
node.attributes.begin(), node.attributes.end(),
[](const IOmxStore::Attribute &i) -> bool {
return i.key == "attribute::software-codec";

Loading…
Cancel
Save