Do not pause if pause is not allowed (#307)

This commit is contained in:
Raja Subramanian
2021-12-31 09:58:13 +05:30
committed by GitHub
parent 007177d095
commit fc95757c7d
+1 -1
View File
@@ -830,7 +830,7 @@ func (s *StreamAllocator) allocateAllTracks() {
if availableChannelCapacity < 0 {
availableChannelCapacity = 0
}
if availableChannelCapacity == 0 {
if availableChannelCapacity == 0 && s.params.Config.AllowPause {
// nothing left for managed tracks, pause them all
for _, track := range s.managedVideoTracksSorted {
allocation := track.Pause()