mirror of
https://github.com/androidx/media.git
synced 2025-05-04 14:10:40 +08:00
Ignore invalid EXT-X-PLAYLIST-TYPE values
Issue:#2889 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=157571216
This commit is contained in:
parent
c80b60f4ac
commit
80600ffe1b
@ -307,8 +307,6 @@ public final class HlsPlaylistParser implements ParsingLoadable.Parser<HlsPlayli
|
||||
playlistType = HlsMediaPlaylist.PLAYLIST_TYPE_VOD;
|
||||
} else if ("EVENT".equals(playlistTypeString)) {
|
||||
playlistType = HlsMediaPlaylist.PLAYLIST_TYPE_EVENT;
|
||||
} else {
|
||||
throw new ParserException("Illegal playlist type: " + playlistTypeString);
|
||||
}
|
||||
} else if (line.startsWith(TAG_START)) {
|
||||
startOffsetUs = (long) (parseDoubleAttr(line, REGEX_TIME_OFFSET) * C.MICROS_PER_SECOND);
|
||||
|
Loading…
x
Reference in New Issue
Block a user