rename buf into payload

This commit is contained in:
aler9
2021-07-03 11:52:51 +02:00
parent 649c63cf5b
commit 88608152cc
7 changed files with 19 additions and 19 deletions

View File

@@ -26,8 +26,8 @@ func main() {
done := make(chan struct{})
go func() {
defer close(done)
conn.ReadFrames(func(trackID int, typ gortsplib.StreamType, buf []byte) {
fmt.Printf("frame from track %d, type %v, size %d\n", trackID, typ, len(buf))
conn.ReadFrames(func(trackID int, streamType gortsplib.StreamType, payload []byte) {
fmt.Printf("frame from track %d, type %v, size %d\n", trackID, streamType, len(payload))
})
}()