hls client: fix freeze that happened during a video decoding error
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user