mirror of
https://github.com/aler9/gortsplib
synced 2025-10-03 06:22:17 +08:00
examples: print decode errors (#793)
This commit is contained in:
@@ -121,8 +121,9 @@ func main() {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
// wait for a frame
|
||||
// check for frame presence
|
||||
if img == nil {
|
||||
log.Printf("ERR: frame cannot be decoded")
|
||||
return
|
||||
}
|
||||
|
||||
|
@@ -104,8 +104,9 @@ func main() {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
// wait for a frame
|
||||
// check for frame presence
|
||||
if img == nil {
|
||||
log.Printf("ERR: frame cannot be decoded")
|
||||
return
|
||||
}
|
||||
|
||||
|
@@ -129,8 +129,9 @@ func main() {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
// wait for a frame
|
||||
// check for frame presence
|
||||
if img == nil {
|
||||
log.Printf("ERR: frame cannot be decoded")
|
||||
return
|
||||
}
|
||||
|
||||
|
@@ -112,8 +112,9 @@ func main() {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
// wait for a frame
|
||||
// check for frame presence
|
||||
if img == nil {
|
||||
log.Printf("ERR: frame cannot be decoded")
|
||||
return
|
||||
}
|
||||
|
||||
|
@@ -132,8 +132,9 @@ func main() {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
// wait for a frame
|
||||
// check for frame presence
|
||||
if img == nil {
|
||||
log.Printf("ERR: frame cannot be decoded")
|
||||
return
|
||||
}
|
||||
|
||||
|
@@ -115,8 +115,9 @@ func main() {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
// wait for a frame
|
||||
// check for frame presence
|
||||
if img == nil {
|
||||
log.Printf("ERR: frame cannot be decoded")
|
||||
return
|
||||
}
|
||||
|
||||
|
@@ -94,8 +94,9 @@ func main() {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
// wait for a frame
|
||||
// check for frame presence
|
||||
if img == nil {
|
||||
log.Printf("ERR: frame cannot be decoded")
|
||||
return
|
||||
}
|
||||
|
||||
|
@@ -94,8 +94,9 @@ func main() {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
// wait for a frame
|
||||
// check for frame presence
|
||||
if img == nil {
|
||||
log.Printf("ERR: frame cannot be decoded")
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user