mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-03-15 03:53:43 +00:00
refactoring
This commit is contained in:
@@ -431,8 +431,8 @@ static int _stream_init_loop(us_stream_s *stream) {
|
|||||||
while (!atomic_load(&stream->run->stop)) {
|
while (!atomic_load(&stream->run->stop)) {
|
||||||
_stream_check_suicide(stream);
|
_stream_check_suicide(stream);
|
||||||
|
|
||||||
unsigned width = stream->dev->run->width;
|
uint width = stream->dev->run->width;
|
||||||
unsigned height = stream->dev->run->height;
|
uint height = stream->dev->run->height;
|
||||||
if (width == 0 || height == 0) {
|
if (width == 0 || height == 0) {
|
||||||
width = stream->dev->width;
|
width = stream->dev->width;
|
||||||
height = stream->dev->height;
|
height = stream->dev->height;
|
||||||
|
|||||||
@@ -57,15 +57,15 @@ typedef struct {
|
|||||||
|
|
||||||
int last_as_blank;
|
int last_as_blank;
|
||||||
bool slowdown;
|
bool slowdown;
|
||||||
unsigned error_delay;
|
uint error_delay;
|
||||||
unsigned exit_on_no_clients;
|
uint exit_on_no_clients;
|
||||||
|
|
||||||
us_memsink_s *jpeg_sink;
|
us_memsink_s *jpeg_sink;
|
||||||
us_memsink_s *raw_sink;
|
us_memsink_s *raw_sink;
|
||||||
|
|
||||||
us_memsink_s *h264_sink;
|
us_memsink_s *h264_sink;
|
||||||
unsigned h264_bitrate;
|
uint h264_bitrate;
|
||||||
unsigned h264_gop;
|
uint h264_gop;
|
||||||
char *h264_m2m_path;
|
char *h264_m2m_path;
|
||||||
|
|
||||||
us_stream_runtime_s *run;
|
us_stream_runtime_s *run;
|
||||||
|
|||||||
Reference in New Issue
Block a user