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

Commit ea44f41b authored by Ronghua Wu's avatar Ronghua Wu Committed by Android (Google) Code Review
Browse files

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

parents a7346034 e4237177
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*/) {