diff options
author | Wei Jia <wjia@google.com> | 2015-10-19 16:14:14 -0700 |
---|---|---|
committer | Wei Jia <wjia@google.com> | 2015-10-21 16:07:31 +0000 |
commit | 224858e719d045c8554856b12c4ab73d2375cf33 (patch) | |
tree | 7aae8271a085e360ad615823d09a2d293bec2649 | |
parent | 8565726f5775a6db97a394aa18a1f6b0e1ce69b7 (diff) | |
download | frameworks_av-224858e719d045c8554856b12c4ab73d2375cf33.zip frameworks_av-224858e719d045c8554856b12c4ab73d2375cf33.tar.gz frameworks_av-224858e719d045c8554856b12c4ab73d2375cf33.tar.bz2 |
GenericSource: reset mDrmManagerClient when mDataSource is cleared.
Bug: 25070434
Change-Id: Iade3472c496ac42456e42db35e402f7b66416f5b
(cherry picked from commit b41fd0d4929f0a89811bafcc4fd944b128f00ce2)
-rw-r--r-- | media/libmediaplayerservice/nuplayer/GenericSource.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/media/libmediaplayerservice/nuplayer/GenericSource.cpp b/media/libmediaplayerservice/nuplayer/GenericSource.cpp index b6f3a9f..63d826c 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(); + mDrmManagerClient = NULL; mCachedSource.clear(); mHttpSource.clear(); } |