SDL_camera_pipewire: use SDL_CAMERA_DRIVER_PIPEWIRE_DYNAMIC

This commit is contained in:
L zard
2024-11-02 16:45:13 +01:00
committed by Sam Lantinga
parent ade829d7ca
commit f2b7495adc

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_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); 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 SDL_SharedObject *pipewire_handle = NULL;
static bool pipewire_dlsym(const char *fn, void **addr) static bool pipewire_dlsym(const char *fn, void **addr)
@@ -146,7 +146,7 @@ static void unload_pipewire_library(void)
// Nothing to do // Nothing to do
} }
#endif // SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC #endif // SDL_CAMERA_DRIVER_PIPEWIRE_DYNAMIC
static bool load_pipewire_syms(void) static bool load_pipewire_syms(void)
{ {