mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
module-rt: Use magic value for user config prio
Instead of having the context priority hardcoded at 88.
This commit is contained in:
parent
674858cd6e
commit
4419baec45
3 changed files with 10 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue