improved logging on --exit-on-device-error

This commit is contained in:
Maxim Devaev 2025-07-03 04:17:48 +03:00
parent 5f437b9a35
commit 777697dc1e

View File

@ -604,7 +604,9 @@ static int _stream_init_loop(us_stream_s *stream) {
return 0;
silent_error:
US_ONCE({ US_LOG_INFO("Waiting for the capture device ..."); });
if (!stream->exit_on_device_error) {
US_ONCE({ US_LOG_INFO("Waiting for the capture device ..."); });
}
goto offline_and_retry;
verbose_error: