diff options
author | Jeff Tinker <jtinker@google.com> | 2014-09-23 22:24:26 -0700 |
---|---|---|
committer | Jeff Tinker <jtinker@google.com> | 2014-09-24 10:32:33 -0700 |
commit | a28785aa9ce323494a6971a38ce1d4d29bf710e4 (patch) | |
tree | 7ef4abb29a6446f81b624d8708949334fd8faa31 /media/libmediaplayerservice | |
parent | 0079b331227fc1555d7c5305f33917a570d44890 (diff) | |
download | frameworks_av-a28785aa9ce323494a6971a38ce1d4d29bf710e4.zip frameworks_av-a28785aa9ce323494a6971a38ce1d4d29bf710e4.tar.gz frameworks_av-a28785aa9ce323494a6971a38ce1d4d29bf710e4.tar.bz2 |
Fix Widevine classic playback errors with NuPlayer
bug: 17589961
Change-Id: If16c61b90cf92caa89eecd66aabef5813fd7619b
Diffstat (limited to 'media/libmediaplayerservice')
-rw-r--r-- | media/libmediaplayerservice/nuplayer/GenericSource.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/media/libmediaplayerservice/nuplayer/GenericSource.cpp b/media/libmediaplayerservice/nuplayer/GenericSource.cpp index bd75034..f84decd 100644 --- a/media/libmediaplayerservice/nuplayer/GenericSource.cpp +++ b/media/libmediaplayerservice/nuplayer/GenericSource.cpp @@ -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; - maxBuffers = 64; + if (mIsWidevine) { + maxBuffers = 8; + } else { + maxBuffers = 64; + } break; case MEDIA_TRACK_TYPE_SUBTITLE: track = &mSubtitleTrack; |