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

Commit 341ab6ee authored by Chong Zhang's avatar Chong Zhang
Browse files

reuse CCDecoder on video discontinuity

bug: 19266084
Change-Id: I06ef57b09b048a85f77be4dee27599c4f60aacc9
parent 77f877f8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1185,7 +1185,9 @@ status_t NuPlayer::instantiateDecoder(bool audio, sp<DecoderBase> *decoder) {
        CHECK(format->findString("mime", &mime));

        sp<AMessage> ccNotify = new AMessage(kWhatClosedCaptionNotify, id());
        if (mCCDecoder == NULL) {
            mCCDecoder = new CCDecoder(ccNotify);
        }

        if (mSourceFlags & Source::FLAG_SECURE) {
            format->setInt32("secure", true);