SDL: Capture debug macros off by default

From 0c6b07076149775ced022227cde118ef333993cf Mon Sep 17 00:00:00 2001
From: George Broughton <[EMAIL REDACTED]>
Date: Thu, 11 Jan 2024 16:11:12 +0100
Subject: [PATCH] Capture debug macros off by default

---
 src/video/SDL_video_capture.c                 | 2 +-
 src/video/SDL_video_capture_v4l2.c            | 4 +++-
 src/video/android/SDL_android_video_capture.c | 2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/video/SDL_video_capture.c b/src/video/SDL_video_capture.c
index 295fc248315c..ea43ff9cdafb 100644
--- a/src/video/SDL_video_capture.c
+++ b/src/video/SDL_video_capture.c
@@ -27,7 +27,7 @@
 #include "SDL_pixels_c.h"
 #include "../thread/SDL_systhread.h"
 
-#define DEBUG_VIDEO_CAPTURE_CAPTURE 1
+#define DEBUG_VIDEO_CAPTURE_CAPTURE 0
 
 
 #ifdef SDL_VIDEO_CAPTURE
diff --git a/src/video/SDL_video_capture_v4l2.c b/src/video/SDL_video_capture_v4l2.c
index b826704e4b7c..3edc26322fd0 100644
--- a/src/video/SDL_video_capture_v4l2.c
+++ b/src/video/SDL_video_capture_v4l2.c
@@ -32,7 +32,7 @@
 #include "../../core/linux/SDL_udev.h"
 #include <limits.h>      /* INT_MAX */
 
-#define DEBUG_VIDEO_CAPTURE_CAPTURE 1
+#define DEBUG_VIDEO_CAPTURE_CAPTURE 0
 
 #if defined(__linux__) && !defined(__ANDROID__)
 
@@ -692,6 +692,7 @@ GetFrameSize(SDL_VideoCaptureDevice *_this, Uint32 format, int index, int *width
 
 
 
+#if DEBUG_VIDEO_CAPTURE_CAPTURE
 static void
 dbg_v4l2_pixelformat(const char *str, int f) {
     SDL_Log("%s  V4L2_format=%d  %c%c%c%c", str, f,
@@ -700,6 +701,7 @@ dbg_v4l2_pixelformat(const char *str, int f) {
                 (f >> 16) & 0xff,
                 (f >> 24) & 0xff);
 }
+#endif
 
 int
 GetDeviceSpec(SDL_VideoCaptureDevice *_this, SDL_VideoCaptureSpec *spec)
diff --git a/src/video/android/SDL_android_video_capture.c b/src/video/android/SDL_android_video_capture.c
index 3deec8140335..55393b08b2d7 100644
--- a/src/video/android/SDL_android_video_capture.c
+++ b/src/video/android/SDL_android_video_capture.c
@@ -27,7 +27,7 @@
 #include "../SDL_pixels_c.h"
 #include "../../thread/SDL_systhread.h"
 
-#define DEBUG_VIDEO_CAPTURE_CAPTURE 1
+#define DEBUG_VIDEO_CAPTURE_CAPTURE 0
 
 #if defined(__ANDROID__) && __ANDROID_API__ >= 24