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

@@ -18,8 +18,8 @@ func main() {
defer conn.Close()
// read RTP frames
err = 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))
err = 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))
})
panic(err)
}