diff --git a/linters/tox.ini b/linters/tox.ini index 4416e38a..c4b73c14 100644 --- a/linters/tox.ini +++ b/linters/tox.ini @@ -16,6 +16,7 @@ commands = cppcheck \ --check-level=exhaustive \ --enable=warning,portability,performance,style \ --suppress=assignmentInAssert \ + --suppress=assertWithSideEffect \ --suppress=variableScope \ --inline-suppr \ --library=python \ diff --git a/src/ustreamer/stream.c b/src/ustreamer/stream.c index 49748257..94036e09 100644 --- a/src/ustreamer/stream.c +++ b/src/ustreamer/stream.c @@ -129,7 +129,7 @@ us_stream_s *us_stream_init(us_capture_s *cap, us_encoder_s *enc) { return stream; } -void us_stream_update_blank(us_stream_s *stream, us_capture_s *cap) { +void us_stream_update_blank(us_stream_s *stream, const us_capture_s *cap) { us_blank_draw(stream->run->blank, "< NO SIGNAL >", cap->width, cap->height); } diff --git a/src/ustreamer/stream.h b/src/ustreamer/stream.h index eca5de66..4be5f51c 100644 --- a/src/ustreamer/stream.h +++ b/src/ustreamer/stream.h @@ -96,7 +96,7 @@ typedef struct { us_stream_s *us_stream_init(us_capture_s *cap, us_encoder_s *enc); -void us_stream_update_blank(us_stream_s *stream, us_capture_s *cap); +void us_stream_update_blank(us_stream_s *stream, const us_capture_s *cap); void us_stream_destroy(us_stream_s *stream); void us_stream_loop(us_stream_s *stream);