Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4237177 authored by Ronghua Wu's avatar Ronghua Wu
Browse files

media: ignore the result of linkToDeath, which can fail if called from same process.

Bug: 19620911
Change-Id: I6a25ed1ef1b2790d0976943ec129f31972e27714
parent f2326ac9
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -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*/) {