Use isEnding to indicate if down track could be resumed. (#4132)

There is no need to cache down track if participant is going away.
This commit is contained in:
Raja Subramanian
2025-12-06 19:55:20 +05:30
committed by GitHub
parent 8c241ecf12
commit a30c79fa6d

View File

@@ -1399,7 +1399,7 @@ func (d *DownTrack) CloseWithFlush(flush bool, isEnding bool) {
close(d.keyFrameRequesterCh)
d.keyFrameRequesterChMu.Unlock()
d.params.Listener.OnDownTrackClose(!flush)
d.params.Listener.OnDownTrackClose(!isEnding)
}
func (d *DownTrack) SetMaxSpatialLayer(spatialLayer int32) {