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

Commit 1d2d88b2 authored by Wei Jia's avatar Wei Jia Committed by Android (Google) Code Review
Browse files

Merge "RTSPSource: check mHTTPService before dereferencing it."

parents 5a94f6f1 ce84b224
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");