mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
client: remove channel from ReadFrames()
This commit is contained in:
@@ -38,7 +38,7 @@ func main() {
|
||||
dec := rtph264.NewDecoder()
|
||||
|
||||
// read RTP frames
|
||||
err = <-conn.ReadFrames(func(trackID int, typ gortsplib.StreamType, buf []byte) {
|
||||
err = conn.ReadFrames(func(trackID int, typ gortsplib.StreamType, buf []byte) {
|
||||
if trackID == h264Track {
|
||||
// convert RTP frames into H264 NALUs
|
||||
nalus, _, err := dec.Decode(buf)
|
||||
|
Reference in New Issue
Block a user