Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
mdevaev committed Mar 28, 2024
1 parent b0b881f commit 4e1f62b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/ustreamer/stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 4e1f62b

Please sign in to comment.