hls client: fix freeze that happened during a video decoding error

This commit is contained in:
aler9
2022-03-08 18:15:26 +01:00
committed by Alessandro Ros
parent 5f976f3f38
commit 6e75093992
+4 -1
View File
@@ -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 {