From 09c291c838bc74bb7c10c22f7232abb946cad8ff Mon Sep 17 00:00:00 2001 From: Wei Jia Date: Thu, 22 Oct 2015 11:35:04 -0700 Subject: GenericSource: reset mDecryptHandle when mDataSource is cleared. Bug: 25070434 Change-Id: Ib0eb6a419683a0e686a4f63b82e9300cb1f69484 (cherry picked from commit cdc9cf656a8e43875234cb021fffeb4792d7c74e) --- media/libmediaplayerservice/nuplayer/GenericSource.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/media/libmediaplayerservice/nuplayer/GenericSource.cpp b/media/libmediaplayerservice/nuplayer/GenericSource.cpp index 63d826c..b3efd74 100644 --- a/media/libmediaplayerservice/nuplayer/GenericSource.cpp +++ b/media/libmediaplayerservice/nuplayer/GenericSource.cpp @@ -381,6 +381,7 @@ void NuPlayer::GenericSource::notifyPreparedAndCleanup(status_t err) { { Mutex::Autolock _l(mDisconnectLock); mDataSource.clear(); + mDecryptHandle = NULL; mDrmManagerClient = NULL; mCachedSource.clear(); mHttpSource.clear(); -- cgit v1.1