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

Commit f1d93381 authored by Robert Shih's avatar Robert Shih Committed by android-build-merger
Browse files

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

am: e8b14c3c

Change-Id: I8dcc94b4dca4a10221f383f35be68f15242c6e40
parents a1b496ac e8b14c3c
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;
}