From 199374884491f2c3055aee4967ff7b8f493b7925 Mon Sep 17 00:00:00 2001 From: Matt Davis Date: Mon, 9 Mar 2026 07:16:51 -0400 Subject: [PATCH 1/2] Apply suggested fix to src/video/api_detection.c from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- src/video/api_detection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/api_detection.c b/src/video/api_detection.c index 2421d3ea..1f5f5a24 100644 --- a/src/video/api_detection.c +++ b/src/video/api_detection.c @@ -608,7 +608,7 @@ int detect_objects_api(const char *api_url, const unsigned char *frame_data, log_info("API Detection: Filtering %d detections by zones for stream %s", result->count, stream_name); int filter_ret = filter_detections_by_zones(stream_name, result); if (filter_ret != 0) { - log_warn("Failed to filter detections by zones, aborting detection pipeline for this frame"); + log_error("Failed to filter detections by zones, aborting detection pipeline for this frame"); goto cleanup; } From 702c78328dc3da725d9016d7471f065f5f49a0c8 Mon Sep 17 00:00:00 2001 From: Matt Davis Date: Mon, 9 Mar 2026 07:16:51 -0400 Subject: [PATCH 2/2] Apply suggested fix to src/video/api_detection.c from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- src/video/api_detection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/api_detection.c b/src/video/api_detection.c index 1f5f5a24..5ac569f2 100644 --- a/src/video/api_detection.c +++ b/src/video/api_detection.c @@ -454,7 +454,7 @@ int detect_objects_api(const char *api_url, const unsigned char *frame_data, curl_easy_setopt(local_curl, CURLOPT_WRITEFUNCTION, write_memory_callback); curl_easy_setopt(local_curl, CURLOPT_WRITEDATA, (void *)&chunk); - curl_easy_setopt(local_curl, CURLOPT_TIMEOUT, 10L); + curl_easy_setopt(local_curl, CURLOPT_TIMEOUT, API_DETECTION_TIMEOUT_SECONDS); setup_common_curl_options(local_curl); log_info("API Detection: Sending request to %s", url_with_params);