From 60da11f0e28562170c62bacaec7181f586ef4980 Mon Sep 17 00:00:00 2001 From: Frank Praznik Date: Mon, 11 Jul 2022 14:31:20 -0400 Subject: [PATCH] pipewire: Remove deprecated configuration key With Pipewire now requiring a minimum version 0.3.24, the PW_KEY_CONTEXT_PROFILE_MODULES value is no longer required for legacy compatability and can be safely removed. --- src/audio/pipewire/SDL_pipewire.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/audio/pipewire/SDL_pipewire.c b/src/audio/pipewire/SDL_pipewire.c index 71acbf11a..fd703ec1b 100644 --- a/src/audio/pipewire/SDL_pipewire.c +++ b/src/audio/pipewire/SDL_pipewire.c @@ -1192,17 +1192,8 @@ PIPEWIRE_OpenDevice(_THIS, const char *devname) return SDL_SetError("Pipewire: Failed to create stream loop (%i)", errno); } - /* - * Load the realtime module so Pipewire can set the loop thread to the appropriate priority. - * - * NOTE: Pipewire versions 0.3.22 or higher require the PW_KEY_CONFIG_NAME property (with client-rt.conf), - * lower versions require explicitly specifying the 'rtkit' module. - * - * PW_KEY_CONTEXT_PROFILE_MODULES is deprecated and can be safely removed if the minimum required - * Pipewire version is increased to 0.3.22 or higher at some point. - */ - props = PIPEWIRE_pw_properties_new(PW_KEY_CONFIG_NAME, "client-rt.conf", - PW_KEY_CONTEXT_PROFILE_MODULES, "default,rtkit", NULL); + /* Load the realtime module so Pipewire can set the loop thread to the appropriate priority. */ + props = PIPEWIRE_pw_properties_new(PW_KEY_CONFIG_NAME, "client-rt.conf", NULL); if (props == NULL) { return SDL_SetError("Pipewire: Failed to create stream context properties (%i)", errno); }