mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-03-18 13:33:43 +00:00
lint fixes
This commit is contained in:
@@ -705,7 +705,7 @@ static const char *_format_to_string_fourcc(char *buf, size_t size, unsigned for
|
|||||||
buf[1] = (format >> 8) & 0x7F;
|
buf[1] = (format >> 8) & 0x7F;
|
||||||
buf[2] = (format >> 16) & 0x7F;
|
buf[2] = (format >> 16) & 0x7F;
|
||||||
buf[3] = (format >> 24) & 0x7F;
|
buf[3] = (format >> 24) & 0x7F;
|
||||||
if (format & (1 << 31)) {
|
if (format & ((unsigned)1 << 31)) {
|
||||||
buf[4] = '-';
|
buf[4] = '-';
|
||||||
buf[5] = 'B';
|
buf[5] = 'B';
|
||||||
buf[6] = 'E';
|
buf[6] = 'E';
|
||||||
|
|||||||
@@ -680,9 +680,10 @@ static void _http_callback_stream_error(UNUSED struct bufferevent *buf_event, UN
|
|||||||
|
|
||||||
# define RUN(_next) client->server->run->_next
|
# define RUN(_next) client->server->run->_next
|
||||||
|
|
||||||
|
assert(RUN(stream_clients_count) > 0);
|
||||||
RUN(stream_clients_count) -= 1;
|
RUN(stream_clients_count) -= 1;
|
||||||
|
|
||||||
if (RUN(stream_clients_count) <= 0) {
|
if (RUN(stream_clients_count) == 0) {
|
||||||
if (client->server->slowdown) {
|
if (client->server->slowdown) {
|
||||||
stream_switch_slowdown(RUN(stream), true);
|
stream_switch_slowdown(RUN(stream), true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user