Merge "Switch to use SF cached source" into honeycomb-mr1

This commit is contained in:
James Dong
2011-03-25 10:22:57 -07:00
committed by Android (Google) Code Review

View File

@@ -1734,12 +1734,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");
mCachedSource.clear();
}
} else {
if (RightsStatus::RIGHTS_VALID != mDecryptHandle->status) {
notifyListener_l(MEDIA_ERROR, MEDIA_ERROR_UNKNOWN, ERROR_NO_LICENSE);
}
}