Bug 69522 - high priority setting isn't respected
Summary: high priority setting isn't respected
Status: RESOLVED FIXED
Alias: None
Product: PulseAudio
Classification: Unclassified
Component: daemon (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: pulseaudio-bugs
QA Contact: pulseaudio-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-18 11:19 UTC by Pierre Ossman
Modified: 2013-11-01 13:52 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Pierre Ossman 2013-09-18 11:19:08 UTC
The code got removed by accident during the cleanup in commit 9c438bcac671. So this patch is needed to bring it back and make things work like documented:

Index: src/daemon/main.c
===================================================================
--- src/daemon/main.c	(revision 27898)
+++ src/daemon/main.c	(working copy)
@@ -892,7 +892,8 @@
 #endif
     pa_rtclock_hrtimer_enable();
 
-    pa_raise_priority(conf->nice_level);
+    if (conf->high_priority)
+        pa_raise_priority(conf->nice_level);
 
     if (conf->system_instance)
         if (change_user() < 0)
Comment 1 David Henningsson 2013-11-01 13:52:55 UTC
Patch committed, thanks!


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.