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

Commit ec86528a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "libstagefright: httplive: Add NULL check for empty playlist"

parents ed9e4390 491d09a1
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -610,7 +610,12 @@ void PlaylistFetcher::onMonitorQueue() {
    int32_t targetDurationSecs;
    int64_t targetDurationUs = kMinBufferedDurationUs;
    if (mPlaylist != NULL) {
        CHECK(mPlaylist->meta()->findInt32("target-duration", &targetDurationSecs));
        if (mPlaylist->meta() == NULL || !mPlaylist->meta()->findInt32(
                "target-duration", &targetDurationSecs)) {
            ALOGE("Playlist is missing required EXT-X-TARGETDURATION tag");
            notifyError(ERROR_MALFORMED);
            return;
        }
        targetDurationUs = targetDurationSecs * 1000000ll;
    }