HLS: Update first segment of EXT-X-KEY state data on discontinuity

This commit is contained in:
rlaphoenix 2024-02-16 16:50:38 +00:00
parent e26e55caf3
commit 323577a5fd
1 changed files with 2 additions and 0 deletions

View File

@ -412,6 +412,8 @@ class HLS:
discon_i += 1
range_offset = 0 # TODO: Should this be reset or not?
map_data = None
if encryption_data:
encryption_data = (i, encryption_data[1], encryption_data[2])
if segment.init_section and (not map_data or segment.init_section != map_data[0]):
if segment.init_section.byterange: