mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-05-28 08:16:14 +00:00
build fix
This commit is contained in:
@@ -479,6 +479,7 @@ static void *_raw_thread(void *v_ctx) {
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef WITH_V4P
|
||||||
static void *_drm_thread(void *v_ctx) {
|
static void *_drm_thread(void *v_ctx) {
|
||||||
US_THREAD_SETTLE("str_drm");
|
US_THREAD_SETTLE("str_drm");
|
||||||
_worker_context_s *ctx = v_ctx;
|
_worker_context_s *ctx = v_ctx;
|
||||||
@@ -535,6 +536,7 @@ static void *_drm_thread(void *v_ctx) {
|
|||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static us_capture_hwbuf_s *_get_latest_hw(us_queue_s *queue) {
|
static us_capture_hwbuf_s *_get_latest_hw(us_queue_s *queue) {
|
||||||
us_capture_hwbuf_s *hw;
|
us_capture_hwbuf_s *hw;
|
||||||
@@ -560,8 +562,10 @@ static bool _stream_has_jpeg_clients_cached(us_stream_s *stream) {
|
|||||||
static bool _stream_has_any_clients_cached(us_stream_s *stream) {
|
static bool _stream_has_any_clients_cached(us_stream_s *stream) {
|
||||||
const us_stream_runtime_s *const run = stream->run;
|
const us_stream_runtime_s *const run = stream->run;
|
||||||
return (
|
return (
|
||||||
stream->v4p
|
# ifdef WITH_V4P
|
||||||
|| _stream_has_jpeg_clients_cached(stream)
|
stream->v4p ||
|
||||||
|
# endif
|
||||||
|
_stream_has_jpeg_clients_cached(stream)
|
||||||
|| (run->h264 != NULL && atomic_load(&run->h264->sink->has_clients))
|
|| (run->h264 != NULL && atomic_load(&run->h264->sink->has_clients))
|
||||||
|| (stream->raw_sink != NULL && atomic_load(&stream->raw_sink->has_clients))
|
|| (stream->raw_sink != NULL && atomic_load(&stream->raw_sink->has_clients))
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user