mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-03-18 21:43:42 +00:00
avoid duplicate increment of slc (#239)
Clang reported "warning: variable 'slc' is incremented both in the loop header and in the loop body".
This commit is contained in:
@@ -127,7 +127,6 @@ void us_stream_loop(us_stream_s *stream) {
|
|||||||
unsigned slc = 0;
|
unsigned slc = 0;
|
||||||
for (; slc < 10 && !atomic_load(&_RUN(stop)) && !us_stream_has_clients(stream); ++slc) {
|
for (; slc < 10 && !atomic_load(&_RUN(stop)) && !us_stream_has_clients(stream); ++slc) {
|
||||||
usleep(100000);
|
usleep(100000);
|
||||||
++slc;
|
|
||||||
}
|
}
|
||||||
h264_force_key = (slc == 10);
|
h264_force_key = (slc == 10);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user