From 547de6cf082ea4f128fac0b9d4c9d79c02b9d499 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Wed, 26 Jan 2022 23:47:02 -0800 Subject: [PATCH] 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 --- Plugins/M3u/M3uContainer.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Plugins/M3u/M3uContainer.m b/Plugins/M3u/M3uContainer.m index e888d068b..4df26b2a2 100644 --- a/Plugins/M3u/M3uContainer.m +++ b/Plugins/M3u/M3uContainer.m @@ -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;