mirror of
https://github.com/pikvm/ustreamer.git
synced 2025-12-24 03:00:01 +00:00
refactoring
This commit is contained in:
parent
0b3a1eb963
commit
490d833983
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user