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

Commit 2f0a8405 authored by Andreas Huber's avatar Andreas Huber
Browse files

Don't advertise the (old-style) software decoders unless they're actually present.

Change-Id: I3753a21e1a7de86432c9c087be9d52028e3a1e1b
parent c6854100
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -4256,9 +4256,11 @@ status_t QueryCodecs(
        if (strncmp(componentName, "OMX.", 4)) {
            // Not an OpenMax component but a software codec.

#if HAVE_SOFTWARE_DECODERS
            results->push();
            CodecCapabilities *caps = &results->editItemAt(results->size() - 1);
            caps->mComponentName = componentName;
#endif

            continue;
        }