mirror of
https://github.com/v0l/m3u8-rs.git
synced 2025-06-22 03:02:50 +00:00
Handle blank lines when checking for master playlist tags.
Fix a bug where a blank line in a master playlist before the first master playlist tag will make the parser think it's a media playlist. Fixes #17
This commit is contained in:
10
sample-playlists/master-playlist-with-blankline.m3u8
Normal file
10
sample-playlists/master-playlist-with-blankline.m3u8
Normal file
@ -0,0 +1,10 @@
|
||||
#EXTM3U
|
||||
|
||||
#EXT-X-STREAM-INF:BANDWIDTH=1280000,AVERAGE-BANDWIDTH=1000000
|
||||
http://example.com/low.m3u8
|
||||
#EXT-X-STREAM-INF:BANDWIDTH=2560000,AVERAGE-BANDWIDTH=2000000
|
||||
http://example.com/mid.m3u8
|
||||
#EXT-X-STREAM-INF:BANDWIDTH=7680000,AVERAGE-BANDWIDTH=6000000
|
||||
http://example.com/hi.m3u8
|
||||
#EXT-X-STREAM-INF:BANDWIDTH=65000,CODECS="mp4a.40.5"
|
||||
http://example.com/audio-only.m3u8
|
Reference in New Issue
Block a user