diff options
author | Andreas Huber <andih@google.com> | 2012-09-28 15:13:18 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2012-09-28 15:13:51 -0700 |
commit | bbe96f0f05a1f1a1b3cfec0d124cb0d63c1ebf2a (patch) | |
tree | 7459ce3e6248756f05fba750bdc73c4e50ca98be /media/libstagefright | |
parent | 23f74017a2c457a25382677b6e696c4cfa06cef5 (diff) | |
download | frameworks_av-bbe96f0f05a1f1a1b3cfec0d124cb0d63c1ebf2a.zip frameworks_av-bbe96f0f05a1f1a1b3cfec0d124cb0d63c1ebf2a.tar.gz frameworks_av-bbe96f0f05a1f1a1b3cfec0d124cb0d63c1ebf2a.tar.bz2 |
Fix shutdown if HDCP was never instantiated.
Change-Id: Icdf6785880180f417c5432dff54c7e0fb12ef84d
related-to-bug: 7247918
Diffstat (limited to 'media/libstagefright')
-rw-r--r-- | media/libstagefright/wifi-display/source/WifiDisplaySource.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp b/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp index 8091cc4..d5ffc65 100644 --- a/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp +++ b/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp @@ -1140,9 +1140,11 @@ void WifiDisplaySource::finishStop2() { ALOGV("finishStop2"); #if REQUIRE_HDCP - mHDCP->setObserver(NULL); - mHDCPObserver.clear(); - mHDCP.clear(); + if (mHDCP != NULL) { + mHDCP->setObserver(NULL); + mHDCPObserver.clear(); + mHDCP.clear(); + } #endif if (mSessionID != 0) { |