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

Commit 53607243 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 am: f1d93381

am: ab438ff0

Change-Id: I58d63bed58a007936f1f43e8f658106961d065c5
parents d8086d5b ab438ff0
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;
}