diff options
Diffstat (limited to 'media')
-rw-r--r-- | media/libstagefright/chromium_http/ChromiumHTTPDataSource.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/media/libstagefright/chromium_http/ChromiumHTTPDataSource.cpp b/media/libstagefright/chromium_http/ChromiumHTTPDataSource.cpp index 07a9eb8..887fe7c 100644 --- a/media/libstagefright/chromium_http/ChromiumHTTPDataSource.cpp +++ b/media/libstagefright/chromium_http/ChromiumHTTPDataSource.cpp @@ -47,6 +47,8 @@ ChromiumHTTPDataSource::~ChromiumHTTPDataSource() { delete mDelegate; mDelegate = NULL; + clearDRMState_l(); + if (mDrmManagerClient != NULL) { delete mDrmManagerClient; mDrmManagerClient = NULL; @@ -116,8 +118,6 @@ void ChromiumHTTPDataSource::onConnectionFailed(status_t err) { // mURI.clear(); mIOResult = err; - - clearDRMState_l(); } void ChromiumHTTPDataSource::disconnect() { @@ -251,8 +251,6 @@ void ChromiumHTTPDataSource::onDisconnectComplete() { // mURI.clear(); mCondition.broadcast(); - - clearDRMState_l(); } sp<DecryptHandle> ChromiumHTTPDataSource::DrmInitialization() { |