module-rt: Don't override acquire_rt priority

This commit is contained in:
Robbert van der Helm 2022-01-16 15:57:02 +01:00
parent 399e6f09d4
commit e2cf858f6a

View file

@ -682,10 +682,6 @@ static int impl_acquire_rt(void *data, struct spa_thread *thread, int priority)
pthread_t pt = (pthread_t)thread; pthread_t pt = (pthread_t)thread;
pid_t pid; pid_t pid;
// XXX: Why does the priority from the configuration override the passed
// priority? The original `module-rt` just uses `priority`.
priority = impl->rt_prio;
if (impl->use_rtkit) { if (impl->use_rtkit) {
rtprio_limit = pw_rtkit_get_max_realtime_priority(impl->system_bus); rtprio_limit = pw_rtkit_get_max_realtime_priority(impl->system_bus);
if (rtprio_limit >= 0) if (rtprio_limit >= 0)