diff options
-rw-r--r-- | media/libstagefright/AwesomePlayer.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/media/libstagefright/AwesomePlayer.cpp b/media/libstagefright/AwesomePlayer.cpp index b893695..c9a0b60 100644 --- a/media/libstagefright/AwesomePlayer.cpp +++ b/media/libstagefright/AwesomePlayer.cpp @@ -1747,12 +1747,7 @@ status_t AwesomePlayer::finishSetDataSource_l() { 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); } } |