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

Commit c2504563 authored by Wonsik Kim's avatar Wonsik Kim Committed by Android (Google) Code Review
Browse files

Merge "MediaRecorderClient: Fix binder dereference while connecting to camera"

parents 397ddfb4 23b3803b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -465,6 +465,10 @@ status_t MediaRecorderClient::setListener(const sp<IMediaRecorderClient>& listen
    } else {
        // Legacy IOMX
        binder = sm->getService(String16("media.codec"));
        if (binder == NULL) {
           ALOGE("Unable to connect to media codec service");
           return NO_INIT;
        }
        mCodecDeathListener = new ServiceDeathNotifier(binder, listener,
                MediaPlayerService::MEDIACODEC_PROCESS_DEATH);
        binder->linkToDeath(mCodecDeathListener);