refactoring

This commit is contained in:
Maxim Devaev 2024-03-29 00:13:08 +02:00
parent b0b881f199
commit 4e1f62bfac

View File

@ -609,15 +609,9 @@ static int _stream_init_loop(us_stream_s *stream) {
waiting_reported = true;
US_LOG_INFO("Waiting for the capture device ...");
}
# ifdef WITH_V4P
_stream_drm_ensure_no_signal(stream);
# endif
goto offline_and_retry;
default:
waiting_reported = false;
# ifdef WITH_V4P
_stream_drm_ensure_no_signal(stream);
# endif
goto offline_and_retry;
}
us_encoder_open(stream->enc, stream->cap);
@ -645,6 +639,10 @@ static int _stream_init_loop(us_stream_s *stream) {
us_h264_stream_process(run->h264, run->blank->raw, true);
}
_stream_expose_raw(stream, run->blank->raw);
# ifdef WITH_V4P
_stream_drm_ensure_no_signal(stream);
# endif
}
usleep(100 * 1000);
}