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

Commit 5bdf3942 authored by Apurupa Pattapu's avatar Apurupa Pattapu Committed by Steve Kondik
Browse files

httplive: Check for NULL playlist in postPrepared

- If playlist parsing fails mPlaylist can be NULL in
  prepare state. Add a NULL check for mPlaylist.

CRs-Fixed: 845920

Change-Id: I239c0e17d4a3c8f7f7429b5ccb82dbb3d408ced2
parent e914a341
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1775,7 +1775,7 @@ void LiveSession::postPrepared(status_t err) {
    mInPreparationPhase = false;

    //start switchdown monitor only for variant playlists
    if (mPlaylist->isVariantPlaylist()) {
    if (mPlaylist != NULL && mPlaylist->isVariantPlaylist()) {
        mSwitchDownMonitor = new AMessage(kWhatCheckSwitchDown, id());
        mSwitchDownMonitor->post();
    }