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

Commit 97e2c881 authored by Santhosh Behara's avatar Santhosh Behara Committed by Steve Kondik
Browse files

RTSP: Add NULL check before accessing mHandler

When there are no packets received from n/w, the RTSP client
sends a Teardown message to the server and mHandler becomes NULL.
Added NULL check before accessing mHandler object.

CRs-Fixed: 785307

Change-Id: Ia429d658a4683640e2d03f0ebe42ae46c9ce3b52
parent e77455d8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -134,7 +134,9 @@ void NuPlayer::RTSPSource::pause() {
        // Check if EOS or ERROR is received
        if (source != NULL && source->isFinished(mediaDurationUs)) {
            ALOGI("Nearing EOS...No Pause is issued");
            if (mHandler != NULL) {
                mHandler->setAUTimeoutCheck(false);
            }
            return;
        }
    }