Unsupported control messages can be debug level. Remove some cruft.

This commit is contained in:
Isaac Connor
2025-12-15 09:53:34 -05:00
parent ae3e8a86b9
commit 13999ab2a3

View File

@@ -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);
@@ -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<ZMPacket> &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,