mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
Fix a warning
../src/modules/module-rt.c:615:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
This commit is contained in:
parent
3376b96f2a
commit
bb82ddb601
1 changed files with 1 additions and 1 deletions
|
|
@ -612,7 +612,7 @@ static bool check_realtime_privileges(struct impl *impl)
|
|||
pw_log_info("getrlimit() failed: %m");
|
||||
if (setrlimit(RLIMIT_RTTIME, &no_rlim) < 0)
|
||||
pw_log_info("setrlimit() failed: %m");
|
||||
if (err = pthread_setschedparam(pthread_self(), new_policy, &new_sched_params) == 0) {
|
||||
if ((err = pthread_setschedparam(pthread_self(), new_policy, &new_sched_params)) == 0) {
|
||||
impl->rt_prio = new_sched_params.sched_priority;
|
||||
pthread_setschedparam(pthread_self(), old_policy, &old_sched_params);
|
||||
ret = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue