summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorRonghua Wu <ronghuawu@google.com>2015-04-20 23:30:31 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-04-20 23:30:33 +0000
commitea44f41bb142555e747cc11382296e94af99d312 (patch)
tree462f4b788506dfa5fcdb38533359fd27a380062a /media
parenta7346034d597c18b63bc63fdfea8360f8b6c1283 (diff)
parente4237177a4a3eea059cd74247b2d770d301a8230 (diff)
downloadframeworks_av-ea44f41bb142555e747cc11382296e94af99d312.zip
frameworks_av-ea44f41bb142555e747cc11382296e94af99d312.tar.gz
frameworks_av-ea44f41bb142555e747cc11382296e94af99d312.tar.bz2
Merge "media: ignore the result of linkToDeath, which can fail if called from same process."
Diffstat (limited to 'media')
-rw-r--r--media/libstagefright/MediaCodec.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/media/libstagefright/MediaCodec.cpp b/media/libstagefright/MediaCodec.cpp
index 5ae79e6..93864e4 100644
--- a/media/libstagefright/MediaCodec.cpp
+++ b/media/libstagefright/MediaCodec.cpp
@@ -236,11 +236,7 @@ void MediaCodec::ResourceManagerServiceProxy::init() {
ALOGE("Failed to get ResourceManagerService");
return;
}
- if (IInterface::asBinder(mService)->linkToDeath(this) != OK) {
- mService.clear();
- ALOGE("Failed to linkToDeath to ResourceManagerService.");
- return;
- }
+ IInterface::asBinder(mService)->linkToDeath(this);
}
void MediaCodec::ResourceManagerServiceProxy::binderDied(const wp<IBinder>& /*who*/) {