mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
module-rt: small fixes
Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
This commit is contained in:
parent
6798b9a933
commit
344cacd24a
2 changed files with 2 additions and 6 deletions
|
|
@ -557,9 +557,6 @@ static int set_rlimit(struct impl *impl)
|
|||
{
|
||||
struct rlimit rl;
|
||||
int res = 0;
|
||||
#ifdef HAVE_DBUS
|
||||
long long rttime;
|
||||
#endif
|
||||
|
||||
spa_zero(rl);
|
||||
rl.rlim_cur = impl->rt_time_soft;
|
||||
|
|
@ -567,6 +564,7 @@ static int set_rlimit(struct impl *impl)
|
|||
|
||||
#ifdef HAVE_DBUS
|
||||
if (impl->use_rtkit) {
|
||||
long long rttime;
|
||||
rttime = pw_rtkit_get_rttime_usec_max(impl->system_bus);
|
||||
if (rttime >= 0) {
|
||||
if ((rlim_t)rttime < rl.rlim_cur) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue