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

Commit e4aa5e88 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "httplive: live streaming initialization NULL check" into oc-dev

parents 34863cb6 08ec09d5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1015,7 +1015,8 @@ void PlaylistFetcher::initSeqNumberForLiveStream(
    sp<AMessage> itemMeta;
    int64_t itemDurationUs;
    int32_t targetDuration;
    if (mPlaylist->meta()->findInt32("target-duration", &targetDuration)) {
    if (mPlaylist->meta() != NULL
            && mPlaylist->meta()->findInt32("target-duration", &targetDuration)) {
        do {
            --index;
            if (!mPlaylist->itemAt(index, NULL /* uri */, &itemMeta)