M3U Playlist container input: Disable for HLS

The built-in M3U container parser should not be used for HLS playlists,
so they should end up in the playlist as-is, so that inputs can parse
them in real time.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
CQTexperiment
Christopher Snowhill 2022-01-26 23:47:02 -08:00
parent 2541633c17
commit 547de6cf08
1 changed files with 3 additions and 0 deletions

View File

@ -129,6 +129,9 @@
for (NSString *entry in [contents componentsSeparatedByString:@"\n"])
{
NSString *_entry = [entry stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
if ([_entry hasPrefix:@"#EXT-X-MEDIA-SEQUENCE"]) // Let FFmpeg handle HLS
return @[];
if ([_entry hasPrefix:@"#"] || [_entry isEqualToString:@""]) //Ignore extra info
continue;