refactoring

This commit is contained in:
Maxim Devaev 2024-03-04 07:22:48 +02:00
parent 0b3a1eb963
commit 490d833983
2 changed files with 6 additions and 6 deletions

View File

@ -431,8 +431,8 @@ static int _stream_init_loop(us_stream_s *stream) {
while (!atomic_load(&stream->run->stop)) {
_stream_check_suicide(stream);
unsigned width = stream->dev->run->width;
unsigned height = stream->dev->run->height;
uint width = stream->dev->run->width;
uint height = stream->dev->run->height;
if (width == 0 || height == 0) {
width = stream->dev->width;
height = stream->dev->height;

View File

@ -57,15 +57,15 @@ typedef struct {
int last_as_blank;
bool slowdown;
unsigned error_delay;
unsigned exit_on_no_clients;
uint error_delay;
uint exit_on_no_clients;
us_memsink_s *jpeg_sink;
us_memsink_s *raw_sink;
us_memsink_s *h264_sink;
unsigned h264_bitrate;
unsigned h264_gop;
uint h264_bitrate;
uint h264_gop;
char *h264_m2m_path;
us_stream_runtime_s *run;