Make sink private for Track

This commit is contained in:
Alexey Khit
2022-11-04 20:54:35 +03:00
parent 3cbf2465ae
commit 278f7696b6
3 changed files with 27 additions and 17 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ func (s *Stream) RemoveConsumer(cons streamer.Consumer) {
var sink bool
for _, track := range producer.tracks {
if len(track.Sink) > 0 {
if track.HasSink() {
sink = true
}
}