mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-25 04:22:00 -08:00
This commit is contained in:
parent
966bec88c6
commit
ffa34428fc
2 changed files with 3 additions and 4 deletions
|
|
@ -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)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue