Loading media/libstagefright/AwesomePlayer.cpp +6 −3 Original line number Diff line number Diff line Loading @@ -291,10 +291,12 @@ status_t AwesomePlayer::setDataSource_l( } dataSource->getDrmInfo(&mDecryptHandle, &mDrmManagerClient); if (mDecryptHandle != NULL && RightsStatus::RIGHTS_VALID != mDecryptHandle->status) { if (mDecryptHandle != NULL) { CHECK(mDrmManagerClient); if (RightsStatus::RIGHTS_VALID != mDecryptHandle->status) { notifyListener_l(MEDIA_ERROR, MEDIA_ERROR_UNKNOWN, ERROR_NO_LICENSE); } } return setDataSource_l(extractor); } Loading Loading @@ -1738,6 +1740,7 @@ status_t AwesomePlayer::finishSetDataSource_l() { dataSource->getDrmInfo(&mDecryptHandle, &mDrmManagerClient); if (mDecryptHandle != NULL) { CHECK(mDrmManagerClient); if (RightsStatus::RIGHTS_VALID == mDecryptHandle->status) { if (DecryptApiType::WV_BASED == mDecryptHandle->decryptApiType) { LOGD("Setting mCachedSource to NULL for WVM\n"); Loading media/libstagefright/DRMExtractor.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -79,6 +79,7 @@ DRMSource::DRMSource(const sp<MediaSource> &mediaSource, mTrackId(trackId), mNALLengthSize(0), mWantsNALFragments(false) { CHECK(mDrmManagerClient); mDrmManagerClient->initializeDecryptUnit( mDecryptHandle, trackId, ipmpBox); Loading media/libstagefright/FileSource.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -63,6 +63,7 @@ FileSource::~FileSource() { if (mDecryptHandle != NULL) { // To release mDecryptHandle CHECK(mDrmManagerClient); mDrmManagerClient->closeDecryptSession(mDecryptHandle); mDecryptHandle = NULL; } Loading media/libstagefright/NuHTTPDataSource.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -81,6 +81,7 @@ NuHTTPDataSource::NuHTTPDataSource() NuHTTPDataSource::~NuHTTPDataSource() { if (mDecryptHandle != NULL) { // To release mDecryptHandle CHECK(mDrmManagerClient); mDrmManagerClient->closeDecryptSession(mDecryptHandle); mDecryptHandle = NULL; } Loading Loading
media/libstagefright/AwesomePlayer.cpp +6 −3 Original line number Diff line number Diff line Loading @@ -291,10 +291,12 @@ status_t AwesomePlayer::setDataSource_l( } dataSource->getDrmInfo(&mDecryptHandle, &mDrmManagerClient); if (mDecryptHandle != NULL && RightsStatus::RIGHTS_VALID != mDecryptHandle->status) { if (mDecryptHandle != NULL) { CHECK(mDrmManagerClient); if (RightsStatus::RIGHTS_VALID != mDecryptHandle->status) { notifyListener_l(MEDIA_ERROR, MEDIA_ERROR_UNKNOWN, ERROR_NO_LICENSE); } } return setDataSource_l(extractor); } Loading Loading @@ -1738,6 +1740,7 @@ status_t AwesomePlayer::finishSetDataSource_l() { dataSource->getDrmInfo(&mDecryptHandle, &mDrmManagerClient); if (mDecryptHandle != NULL) { CHECK(mDrmManagerClient); if (RightsStatus::RIGHTS_VALID == mDecryptHandle->status) { if (DecryptApiType::WV_BASED == mDecryptHandle->decryptApiType) { LOGD("Setting mCachedSource to NULL for WVM\n"); Loading
media/libstagefright/DRMExtractor.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -79,6 +79,7 @@ DRMSource::DRMSource(const sp<MediaSource> &mediaSource, mTrackId(trackId), mNALLengthSize(0), mWantsNALFragments(false) { CHECK(mDrmManagerClient); mDrmManagerClient->initializeDecryptUnit( mDecryptHandle, trackId, ipmpBox); Loading
media/libstagefright/FileSource.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -63,6 +63,7 @@ FileSource::~FileSource() { if (mDecryptHandle != NULL) { // To release mDecryptHandle CHECK(mDrmManagerClient); mDrmManagerClient->closeDecryptSession(mDecryptHandle); mDecryptHandle = NULL; } Loading
media/libstagefright/NuHTTPDataSource.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -81,6 +81,7 @@ NuHTTPDataSource::NuHTTPDataSource() NuHTTPDataSource::~NuHTTPDataSource() { if (mDecryptHandle != NULL) { // To release mDecryptHandle CHECK(mDrmManagerClient); mDrmManagerClient->closeDecryptSession(mDecryptHandle); mDecryptHandle = NULL; } Loading