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