Skip to content

fix: apply SCTE35 from EXT-X-CUE-OUT-CONT lines#416

Open
gaoflow wants to merge 1 commit into
globocom:masterfrom
gaoflow:fix/scte35-cue-out-cont
Open

fix: apply SCTE35 from EXT-X-CUE-OUT-CONT lines#416
gaoflow wants to merge 1 commit into
globocom:masterfrom
gaoflow:fix/scte35-cue-out-cont

Conversation

@gaoflow

@gaoflow gaoflow commented Jun 28, 2026

Copy link
Copy Markdown

Summary

_parse_cueout_cont had a copy-paste bug: the SCTE35 attribute from #EXT-X-CUE-OUT-CONT lines was only applied when a Duration= attribute was also present, because the condition checked if duration: instead of if scte35:.

When a CUE-OUT-CONT line carried SCTE35= without Duration=, the value was silently lost.

The bug

scte35 = cue_info.get("scte35")
if duration:      # should be `if scte35:`
    state["current_cue_out_scte35"] = scte35

This PR was assisted by an AI language model (Claude) under my direction.

When EXT-X-CUE-OUT-CONT includes a SCTE35= attribute but no Duration=,
the SCTE35 value was silently ignored due to a copy-paste error in the
condition check (duration used in place of scte35).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant