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

Commit d0b2548c authored by Lajos Molnar's avatar Lajos Molnar Committed by android-build-merger
Browse files

Merge "stagefright: move all codecs into codec process unless excluded" into nyc-dev

am: 77404e1a

* commit '77404e1a':
  stagefright: move all codecs into codec process unless excluded

Change-Id: I89975ff6eeee0d554ec564520e64e3748dcc6976
parents f2ea420b 77404e1a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -207,12 +207,14 @@ bool MuxOMX::isLocalNode_l(node_id node) const {
// static
MuxOMX::node_location MuxOMX::getPreferredCodecLocation(const char *name) {
    if (sCodecProcessEnabled) {
        // all codecs go to codec process unless excluded using system property, in which case
        // all non-secure decoders, OMX.google.* codecs and encoders can go in the codec process
        // (non-OMX.google.* encoders can be excluded using system property.)
        if ((strcasestr(name, "decoder")
                        && strcasestr(name, ".secure") != name + strlen(name) - 7)
                || (strcasestr(name, "encoder")
                        && !property_get_bool("media.stagefright.legacyencoder", false))
                || !property_get_bool("media.stagefright.less-secure", false)
                || !strncasecmp(name, "OMX.google.", 11)) {
            return CODECPROCESS;
        }