This commit is contained in:
@@ -363,7 +363,5 @@ func (t *webRTCOutgoingTrack) start(
|
||||
}
|
||||
}()
|
||||
|
||||
stream.AddReader(writer, t.media, t.format, func(u unit.Unit) error {
|
||||
return t.cb(u)
|
||||
})
|
||||
stream.AddReader(writer, t.media, t.format, t.cb)
|
||||
}
|
||||
|
||||
@@ -80,8 +80,9 @@ func (sf *streamFormat) writeUnit(s *Stream, medi *description.Media, u unit.Uni
|
||||
}
|
||||
|
||||
for writer, cb := range sf.readers {
|
||||
ccb := cb
|
||||
writer.Push(func() error {
|
||||
return cb(u)
|
||||
return ccb(u)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user