lower SO_PRIORITY priority to 6, since this is the best we get without being root

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1862 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2007-09-18 22:29:24 +00:00
parent ef8df41042
commit b3093d8405

View file

@ -149,7 +149,7 @@ int pa_socket_low_delay(int fd) {
int priority;
pa_assert(fd >= 0);
priority = 7;
priority = 6;
if (setsockopt(fd, SOL_SOCKET, SO_PRIORITY, (void*)&priority, sizeof(priority)) < 0) {
pa_log_warn("SO_PRIORITY failed: %s", pa_cstrerror(errno));
return -1;