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

Commit 059c0a72 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by Gerrit Code Review
Browse files

MediaExtractor: Add more skip conditions for the second-pass extractors

If the stream's container is opaque (DRM) or a known skip condition
(cached-source MPEG4), don't push it through the deep scanner

Change-Id: Ia9d60180b5d177714d206fc7dc94da93b37a048e
parent 0d7996ed
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -149,7 +149,9 @@ retry:

    if (ret != NULL) {

        if (!secondPass && ( ret->countTracks() == 0 ||
        if (!(!strcasecmp(mime, MEDIA_MIMETYPE_CONTAINER_MPEG4) &&
                (source->flags() & DataSource::kIsCachingDataSource)) &&
                    !isDrm && !secondPass && ( ret->countTracks() == 0 ||
                    (!strncasecmp("video/", mime, 6) && ret->countTracks() < 2) ) ) {
            secondPass = true;
            goto retry;