Switch to use SF cached source
bug - 3500025
Change-Id: I96c416d39af498f091d2d52f5923f556382a9c1f
diff --git a/media/libstagefright/AwesomePlayer.cpp b/media/libstagefright/AwesomePlayer.cpp
index bac1334..435a1b0 100644
--- a/media/libstagefright/AwesomePlayer.cpp
+++ b/media/libstagefright/AwesomePlayer.cpp
@@ -1734,12 +1734,7 @@
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);
}
}