diff --git a/examples/client-play-format-av1-to-jpeg/main.go b/examples/client-play-format-av1-to-jpeg/main.go index ac08ce3d..2cf65e0d 100644 --- a/examples/client-play-format-av1-to-jpeg/main.go +++ b/examples/client-play-format-av1-to-jpeg/main.go @@ -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 } diff --git a/examples/client-play-format-av1/main.go b/examples/client-play-format-av1/main.go index 4f5c3ae8..7c27d66e 100644 --- a/examples/client-play-format-av1/main.go +++ b/examples/client-play-format-av1/main.go @@ -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 } diff --git a/examples/client-play-format-h264-to-jpeg/main.go b/examples/client-play-format-h264-to-jpeg/main.go index 7caa3e0c..df24c5ef 100644 --- a/examples/client-play-format-h264-to-jpeg/main.go +++ b/examples/client-play-format-h264-to-jpeg/main.go @@ -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 } diff --git a/examples/client-play-format-h264/main.go b/examples/client-play-format-h264/main.go index 8ec62614..2d84dc7a 100644 --- a/examples/client-play-format-h264/main.go +++ b/examples/client-play-format-h264/main.go @@ -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 } diff --git a/examples/client-play-format-h265-to-jpeg/main.go b/examples/client-play-format-h265-to-jpeg/main.go index 09a55f58..6d283fe2 100644 --- a/examples/client-play-format-h265-to-jpeg/main.go +++ b/examples/client-play-format-h265-to-jpeg/main.go @@ -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 } diff --git a/examples/client-play-format-h265/main.go b/examples/client-play-format-h265/main.go index 3056b1f7..bcfb9eef 100644 --- a/examples/client-play-format-h265/main.go +++ b/examples/client-play-format-h265/main.go @@ -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 } diff --git a/examples/client-play-format-vp8/main.go b/examples/client-play-format-vp8/main.go index 644937dd..c0d08de7 100644 --- a/examples/client-play-format-vp8/main.go +++ b/examples/client-play-format-vp8/main.go @@ -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 } diff --git a/examples/client-play-format-vp9/main.go b/examples/client-play-format-vp9/main.go index 1a6f74b3..7677178d 100644 --- a/examples/client-play-format-vp9/main.go +++ b/examples/client-play-format-vp9/main.go @@ -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 }