Fix intermittent native fault in Widevine
Change-Id: I19e0b19eb9e53ca19dea10a46cf286fb091d7542 related-to-bug: 6432496
This commit is contained in:
@@ -422,7 +422,13 @@ WVStatus WVMMediaSource::DecryptCallback(WVEsSelector esType, void* input, void*
|
|||||||
{
|
{
|
||||||
//ALOGD("DecryptCallback(type=%d, in=%p, out=%p, len=%d, key=%d\n",
|
//ALOGD("DecryptCallback(type=%d, in=%p, out=%p, len=%d, key=%d\n",
|
||||||
// (int)esType, input, output, length, key);
|
// (int)esType, input, output, length, key);
|
||||||
|
|
||||||
WVMExtractorImpl *extractor = (WVMExtractorImpl *)obj;
|
WVMExtractorImpl *extractor = (WVMExtractorImpl *)obj;
|
||||||
|
if (!extractor) {
|
||||||
|
ALOGE("WVMMediaSource::DecryptCallback - no extractor!");
|
||||||
|
return WV_Status_Unknown;
|
||||||
|
}
|
||||||
|
|
||||||
sp<WVMMediaSource> source;
|
sp<WVMMediaSource> source;
|
||||||
if (esType == WV_EsSelector_Video)
|
if (esType == WV_EsSelector_Video)
|
||||||
source = extractor->getVideoSource();
|
source = extractor->getVideoSource();
|
||||||
|
|||||||
Reference in New Issue
Block a user