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

set Segment key error #200

Open
Ruk1ng001 opened this issue Sep 13, 2023 · 0 comments
Open

set Segment key error #200

Ruk1ng001 opened this issue Sep 13, 2023 · 0 comments

Comments

@Ruk1ng001
Copy link

I get an error when all segments is nil in file reader.go:

		if state.tagKey {
			p.Segments[p.last()].Key = &Key{state.xkey.Method, state.xkey.URI, state.xkey.IV, state.xkey.Keyformat, state.xkey.Keyformatversions}
			// First EXT-X-KEY may appeared in the header of the playlist and linked to first segment
			// but for convenient playlist generation it also linked as default playlist key
			if p.Key == nil {
				p.Key = state.xkey
			}
			state.tagKey = false
		}

All the segment in p.Segments is nil, so cann't find p.Segments[p.last()].Key.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant