Merge branch 'main' into main

This commit is contained in:
chu23465 2024-11-23 23:36:08 +05:30 committed by GitHub
commit 00db930ac1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -368,7 +368,7 @@ internal class HLSExtractor : IExtractor
// #EXT-X-MAP // #EXT-X-MAP
else if (line.StartsWith(HLSTags.ext_x_map)) else if (line.StartsWith(HLSTags.ext_x_map))
{ {
if (playlist.MediaInit == null) if (playlist.MediaInit == null || hasAd)
{ {
playlist.MediaInit = new MediaSegment() playlist.MediaInit = new MediaSegment()
{ {

View File

@ -273,6 +273,7 @@ internal class MyOption
public bool OnlyInit { get; set; } public bool OnlyInit { get; set; }
public DecryptEngine GetDecryptEngine() public DecryptEngine GetDecryptEngine()
{ {
if (UseShakaPackager) if (UseShakaPackager)