From c9cb0a416eab71ab102d78033ee96d6b2a3af95c Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Sun, 3 Mar 2024 08:23:18 +0200 Subject: [PATCH] fixed persistent timeout --- src/ustreamer/stream.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ustreamer/stream.c b/src/ustreamer/stream.c index 125e08caa..b1687955e 100644 --- a/src/ustreamer/stream.c +++ b/src/ustreamer/stream.c @@ -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); @@ -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; }