simplify examples

This commit is contained in:
aler9
2020-12-09 12:19:32 +01:00
parent d9a149b0ec
commit 04f3c79fe4
3 changed files with 3 additions and 12 deletions

View File

@@ -53,11 +53,8 @@ func main() {
}
// read track frames
done := conn.ReadFrames(func(id int, typ gortsplib.StreamType, buf []byte) {
err = <-conn.ReadFrames(func(id int, typ gortsplib.StreamType, buf []byte) {
fmt.Printf("frame from track %d, type %v: %v\n", id, typ, buf)
})
// catch any error
err = <-done
panic(err)
}