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

Commit a28785aa authored by Jeff Tinker's avatar Jeff Tinker
Browse files

Fix Widevine classic playback errors with NuPlayer

bug: 17589961
Change-Id: If16c61b90cf92caa89eecd66aabef5813fd7619b
parent 0079b331
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -1198,10 +1198,17 @@ void NuPlayer::GenericSource::readBuffer(
    switch (trackType) {
        case MEDIA_TRACK_TYPE_VIDEO:
            track = &mVideoTrack;
            if (mIsWidevine) {
                maxBuffers = 2;
            }
            break;
        case MEDIA_TRACK_TYPE_AUDIO:
            track = &mAudioTrack;
            if (mIsWidevine) {
                maxBuffers = 8;
            } else {
                maxBuffers = 64;
            }
            break;
        case MEDIA_TRACK_TYPE_SUBTITLE:
            track = &mSubtitleTrack;