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

Commit e8b14c3c authored by Robert Shih's avatar Robert Shih Committed by Gerrit Code Review
Browse files

Merge "HTTPLIVE: do not store hash of malformed M3U8 file"

parents 549e4319 ff8b0234
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -256,10 +256,6 @@ sp<M3UParser> HTTPDownloader::fetchPlaylist(

        return NULL;
    }

    if (curPlaylistHash != NULL) {
        memcpy(curPlaylistHash, hash, sizeof(hash));
    }
#endif

    sp<M3UParser> playlist =
@@ -271,6 +267,13 @@ sp<M3UParser> HTTPDownloader::fetchPlaylist(
        return NULL;
    }

#if defined(__ANDROID__)
    if (curPlaylistHash != NULL) {

        memcpy(curPlaylistHash, hash, sizeof(hash));
    }
#endif

    return playlist;
}