Skip to content
This repository was archived by the owner on Dec 8, 2024. It is now read-only.
This repository was archived by the owner on Dec 8, 2024. It is now read-only.

Decoding MediaPlaylist, winsize = 0, Encode has no segments. #22

@itsjamie

Description

@itsjamie

When decoding a MediaPlaylist, and then reencoding it with a window size of zero. No segments are in the resulting file.

I traced it down to a the for loop inside Encode that loops the Segments, it currently checks i < p.winsize. Which works for a sliding playlist, but where VOD is supposed to set winsize to zero, it results in no segments being printed.

I was able to get rid of the issue by changing the for loop condition to be i <= p.winsize.. but I'm not sure if that effects live playlists in a poor way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions