mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-25 20:41:59 -08:00
hls client: fix freeze that happened during a video decoding error
This commit is contained in:
parent
5f976f3f38
commit
6e75093992
1 changed files with 4 additions and 1 deletions
|
|
@ -137,7 +137,10 @@ func (p *clientVideoProcessor) process(
|
|||
data []byte,
|
||||
pts time.Duration,
|
||||
dts time.Duration) {
|
||||
p.queue <- clientVideoProcessorData{data, pts, dts}
|
||||
select {
|
||||
case p.queue <- clientVideoProcessorData{data, pts, dts}:
|
||||
case <-p.ctx.Done():
|
||||
}
|
||||
}
|
||||
|
||||
func (p *clientVideoProcessor) initializeTrack() error {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue