Fix external producers

This commit is contained in:
Alexey Khit
2022-11-13 21:33:09 +03:00
parent 220b9ca318
commit e6d3939c78
4 changed files with 51 additions and 25 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ func (s *Stream) RemoveConsumer(cons streamer.Consumer) {
}
func (s *Stream) AddProducer(prod streamer.Producer) {
producer := &Producer{element: prod, state: stateTracks}
producer := &Producer{element: prod, state: stateExternal}
s.mu.Lock()
s.producers = append(s.producers, producer)
s.mu.Unlock()