SDL_camera_pipewire: use SDL_CAMERA_DRIVER_PIPEWIRE_DYNAMIC

This commit is contained in:
L zard authored and Sam Lantinga committed 2024-12-24 07:19:38 -08:00
1 parent ade829d7ca
commit f2b7495adc
1 file changed
+3 -3
+3 -3
View File
@@ -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)
{