diff options
author | Gloria Wang <gwang@google.com> | 2011-01-11 14:55:56 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-01-11 14:55:56 -0800 |
commit | ac2652c25f5d2a38709131f7731651bc5819fed5 (patch) | |
tree | d8c86badbc1e53832fe2e3cf41f7970843c3f471 /drm/drmserver | |
parent | b03f5627d4e0d80ea7b185e0af1d8a5d19461325 (diff) | |
parent | 9cfc9eff42a0700029c39e89c38b52488845ad63 (diff) | |
download | frameworks_av-ac2652c25f5d2a38709131f7731651bc5819fed5.zip frameworks_av-ac2652c25f5d2a38709131f7731651bc5819fed5.tar.gz frameworks_av-ac2652c25f5d2a38709131f7731651bc5819fed5.tar.bz2 |
am 9e0bb6d5: am 0544d059: Merge "DRM Framework bug fixes."
* commit '9e0bb6d5eef5dfe2da60c50f3aaa39512307d11d':
DRM Framework bug fixes.
Diffstat (limited to 'drm/drmserver')
-rw-r--r-- | drm/drmserver/DrmManager.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drm/drmserver/DrmManager.cpp b/drm/drmserver/DrmManager.cpp index 9a6f787..b6e0c30 100644 --- a/drm/drmserver/DrmManager.cpp +++ b/drm/drmserver/DrmManager.cpp @@ -117,7 +117,11 @@ status_t DrmManager::unloadPlugIns() { status_t DrmManager::setDrmServiceListener( int uniqueId, const sp<IDrmServiceListener>& drmServiceListener) { Mutex::Autolock _l(mLock); - mServiceListeners.add(uniqueId, drmServiceListener); + if (NULL != drmServiceListener.get()) { + mServiceListeners.add(uniqueId, drmServiceListener); + } else { + mServiceListeners.removeItem(uniqueId); + } return DRM_NO_ERROR; } |