mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-24 20:11:56 -08:00
rename buf into payload
This commit is contained in:
parent
96c3d9eba1
commit
ab508e01ec
1 changed files with 2 additions and 2 deletions
|
|
@ -35,11 +35,11 @@ func (m *readersMap) remove(reader reader) {
|
|||
delete(m.ma, reader)
|
||||
}
|
||||
|
||||
func (m *readersMap) forwardFrame(trackID int, streamType gortsplib.StreamType, buf []byte) {
|
||||
func (m *readersMap) forwardFrame(trackID int, streamType gortsplib.StreamType, payload []byte) {
|
||||
m.mutex.RLock()
|
||||
defer m.mutex.RUnlock()
|
||||
|
||||
for c := range m.ma {
|
||||
c.OnFrame(trackID, streamType, buf)
|
||||
c.OnFrame(trackID, streamType, payload)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue