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

Commit 3499e2d1 authored by James Dong's avatar James Dong
Browse files

Don't make the decrypted content available to Java applications via MediaExtractor.java API

Change-Id: I38df6a6be30a34ce3f2640f79784dc94c8ca1158
parent f1b3ee26
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -110,6 +110,12 @@ status_t NuMediaExtractor::setDataSource(
        // give us data in a call to MediaSource::read(), unlike its
        // default mode that we use from AwesomePlayer.
        static_cast<WVMExtractor *>(mImpl.get())->setCryptoPluginMode(true);
    } else if (mImpl->getDrmFlag()) {
        // For all other drm content, we don't want to expose decrypted
        // content to Java application.
        mImpl.clear();
        mImpl = NULL;
        return ERROR_UNSUPPORTED;
    }

    mDataSource = dataSource;