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

Commit ce84b224 authored by Wei Jia's avatar Wei Jia
Browse files

RTSPSource: check mHTTPService before dereferencing it.

Change-Id: Id92c5ed86742f9c5cb0a67207b26de61523fd009
parent 74a930b2
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -76,6 +76,11 @@ NuPlayer::RTSPSource::~RTSPSource() {
}

void NuPlayer::RTSPSource::prepareAsync() {
    if (mIsSDP && mHTTPService == NULL) {
        notifyPrepared(BAD_VALUE);
        return;
    }

    if (mLooper == NULL) {
        mLooper = new ALooper;
        mLooper->setName("rtsp");