Skip to content

Commit

Permalink
fixed persistent timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
mdevaev committed Mar 3, 2024
1 parent ffa68a8 commit c9cb0a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ustreamer/stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ void us_stream_loop(us_stream_s *stream) {
const int buf_index = us_device_grab_buffer(dev, &hw);
switch (buf_index) {
case -3: continue; // Broken frame
case -2: // Persistent timeout
case -2: continue; // Persistent timeout
case -1: goto close; // Error
}
assert(buf_index >= 0);
Expand Down Expand Up @@ -380,7 +380,7 @@ static void *_h264_thread(void *v_ctx) {

if (!us_memsink_server_check(ctx->h264->sink, NULL)) {
us_device_buffer_decref(hw);
US_LOG_VERBOSE("Passed JPEG encoding because nobody is watching");
US_LOG_VERBOSE("Passed H264 encoding because nobody is watching");
continue;
}

Expand Down

0 comments on commit c9cb0a4

Please sign in to comment.