From 4db730abd9ec2e554cede4ba1b2ec0eb15b127bd Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Thu, 7 Nov 2024 12:17:44 +0200 Subject: [PATCH] fixed missing argument --- src/ustreamer/main.c | 2 +- src/ustreamer/stream.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ustreamer/main.c b/src/ustreamer/main.c index ea69d972..bf7e71cb 100644 --- a/src/ustreamer/main.c +++ b/src/ustreamer/main.c @@ -90,7 +90,7 @@ int main(int argc, char *argv[]) { _g_server = us_server_init(_g_stream); if ((exit_code = options_parse(options, cap, enc, _g_stream, _g_server)) == 0) { - us_stream_update_blank(cap); + us_stream_update_blank(_g_stream, cap); # ifdef WITH_GPIO us_gpio_init(); # endif diff --git a/src/ustreamer/stream.c b/src/ustreamer/stream.c index 3b257ccc..49748257 100644 --- a/src/ustreamer/stream.c +++ b/src/ustreamer/stream.c @@ -129,8 +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, us_capture_s *cap) { us_blank_draw(stream->run->blank, "< NO SIGNAL >", cap->width, cap->height); }