module-rt: Use magic value for user config prio

Instead of having the context priority hardcoded at 88.
This commit is contained in:
Robbert van der Helm 2022-01-16 16:49:03 +01:00
parent 674858cd6e
commit 4419baec45
3 changed files with 10 additions and 2 deletions

View file

@ -682,6 +682,11 @@ static int impl_acquire_rt(void *data, struct spa_thread *thread, int priority)
pthread_t pt = (pthread_t)thread;
pid_t pid;
// See the docstring on `spa_thread_utils_methods::acquire_rt`
if (priority == -1) {
priority = impl->rt_prio;
}
if (impl->use_rtkit) {
rtprio_limit = pw_rtkit_get_max_realtime_priority(impl->system_bus);
if (rtprio_limit >= 0)