Skip to content

Commit

Permalink
avoid duplicate increment of slc
Browse files Browse the repository at this point in the history
Clang reported "warning: variable 'slc' is incremented both in the loop
header and in the loop body".
  • Loading branch information
emaste committed Oct 23, 2023
1 parent 79987da commit 0e3ce81
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/ustreamer/stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ void us_stream_loop(us_stream_s *stream) {
unsigned slc = 0;
for (; slc < 10 && !atomic_load(&_RUN(stop)) && !us_stream_has_clients(stream); ++slc) {
usleep(100000);
++slc;
}
h264_force_key = (slc == 10);
}
Expand Down

0 comments on commit 0e3ce81

Please sign in to comment.