mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-25 04:22:00 -08:00
hls muxer: restore support for EXT-X-PRELOAD-HINT
This commit is contained in:
parent
ec8175e434
commit
242fa0bbba
1 changed files with 4 additions and 2 deletions
|
|
@ -397,7 +397,9 @@ func (p *muxerVariantFMP4Playlist) segmentReader(fname string) *MuxerFileRespons
|
|||
}
|
||||
}
|
||||
|
||||
if fname == fmp4PartName(p.nextPartID) {
|
||||
// EXT-X-PRELOAD-HINT support
|
||||
nextPartName := fmp4PartName(p.nextPartID)
|
||||
if base == nextPartName {
|
||||
p.mutex.Lock()
|
||||
defer p.mutex.Unlock()
|
||||
|
||||
|
|
@ -422,7 +424,7 @@ func (p *muxerVariantFMP4Playlist) segmentReader(fname string) *MuxerFileRespons
|
|||
Header: map[string]string{
|
||||
"Content-Type": "video/mp4",
|
||||
},
|
||||
Body: p.partsByName[fmp4PartName(nextPartID)].reader(),
|
||||
Body: p.partsByName[nextPartName].reader(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue