From 13999ab2a3971b9a2d4b6078dd23eec976be12c5 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Mon, 15 Dec 2025 09:53:34 -0500 Subject: [PATCH] Unsupported control messages can be debug level. Remove some cruft. --- src/zm_local_camera.cpp | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/zm_local_camera.cpp b/src/zm_local_camera.cpp index ecf5430ae..993ebc722 100644 --- a/src/zm_local_camera.cpp +++ b/src/zm_local_camera.cpp @@ -681,14 +681,6 @@ void LocalCamera::Initialise() { } } // end if JPEG/MJPEG - if (0) { - Debug(3, "Configuring video source"); - - if (vidioctl(vid_fd, VIDIOC_S_INPUT, &channel) < 0) { - Error("Failed to set camera source %d: %s", channel, strerror(errno)); - } - } - Debug(3, "Setting up request buffers"); @@ -763,7 +755,6 @@ void LocalCamera::Initialise() { 1); } // end foreach request buf - Contrast(contrast); Brightness(brightness); Hue(hue); @@ -883,7 +874,7 @@ uint32_t LocalCamera::AutoSelectFormat(int p_colours) { if ( nIndexUsed >= 0 ) { /* Found a match */ selected_palette = fmt_fcc[nIndexUsed]; - strcpy(palette_desc,fmt_desc[nIndexUsed]); + strcpy(palette_desc, fmt_desc[nIndexUsed]); } /* Close the device */ @@ -1213,7 +1204,7 @@ int LocalCamera::Control(int vid_id, int newvalue) { if (errno != EINVAL) { Error("Unable to query control: %s", strerror(errno)); } else { - Warning("Control is not supported"); + Debug(1, "Control is not supported"); } } else if (newvalue >= 0) { vid_control.value = newvalue; @@ -1421,7 +1412,7 @@ int LocalCamera::Capture(std::shared_ptr &zm_packet) { return -1; } if (conversion_type == 1) { - Debug(9, "Calling sws_scale to perform the conversion"); + Debug(4, "Calling sws_scale to perform the conversion"); /* Use swscale to convert the image directly into the shared memory */ av_image_fill_arrays(tmpPicture->data, tmpPicture->linesize, directbuffer,