From 4e1f62bfac503e21a83f80f09f234532e2653e15 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Fri, 29 Mar 2024 00:13:08 +0200 Subject: [PATCH] refactoring --- src/ustreamer/stream.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/ustreamer/stream.c b/src/ustreamer/stream.c index 3675a153..ccd2e62b 100644 --- a/src/ustreamer/stream.c +++ b/src/ustreamer/stream.c @@ -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); }