Capture debug macros off by default

This commit is contained in:
George Broughton 2024-01-11 16:11:12 +01:00 committed by Ryan C. Gordon
parent b5bc64aa55
commit 0c6b070761
3 changed files with 5 additions and 3 deletions

View file

@ -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

View file

@ -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)

View file

@ -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