From f2b7495adcc61c210ee4edbfdf36999c26946c35 Mon Sep 17 00:00:00 2001 From: L zard Date: Sat, 2 Nov 2024 16:45:13 +0100 Subject: [PATCH] SDL_camera_pipewire: use `SDL_CAMERA_DRIVER_PIPEWIRE_DYNAMIC` --- src/camera/pipewire/SDL_camera_pipewire.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/camera/pipewire/SDL_camera_pipewire.c b/src/camera/pipewire/SDL_camera_pipewire.c index 8460d995e7..f5cdad95b7 100644 --- a/src/camera/pipewire/SDL_camera_pipewire.c +++ b/src/camera/pipewire/SDL_camera_pipewire.c @@ -98,9 +98,9 @@ static struct pw_properties *(*PIPEWIRE_pw_properties_new_dict)(const struct spa static int (*PIPEWIRE_pw_properties_set)(struct pw_properties *, const char *, const char *); static int (*PIPEWIRE_pw_properties_setf)(struct pw_properties *, const char *, const char *, ...) SPA_PRINTF_FUNC(3, 4); -#ifdef SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC +#ifdef SDL_CAMERA_DRIVER_PIPEWIRE_DYNAMIC -static const char *pipewire_library = SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC; +static const char *pipewire_library = SDL_CAMERA_DRIVER_PIPEWIRE_DYNAMIC; static SDL_SharedObject *pipewire_handle = NULL; static bool pipewire_dlsym(const char *fn, void **addr) @@ -146,7 +146,7 @@ static void unload_pipewire_library(void) // Nothing to do } -#endif // SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC +#endif // SDL_CAMERA_DRIVER_PIPEWIRE_DYNAMIC static bool load_pipewire_syms(void) {