Accepting request 59059 from multimedia:libs
Accepted submit request 59059 from user sreeves1 OBS-URL: https://build.opensuse.org/request/show/59059 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pulseaudio?expand=0&rev=69
This commit is contained in:
commit
0e4d139c82
34
bnc666350-fix-incorrect-check-of-return-value.patch
Normal file
34
bnc666350-fix-incorrect-check-of-return-value.patch
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
From 7475a180ff99f08db8e79be8841ef2ef322806eb Mon Sep 17 00:00:00 2001
|
||||||
|
From: Scott Reeves <sreeves@novell.com>
|
||||||
|
Date: Thu, 20 Jan 2011 16:41:21 -0700
|
||||||
|
Subject: [PATCH] fix incorrect check of return value
|
||||||
|
|
||||||
|
---
|
||||||
|
src/pulsecore/core-util.c | 4 ++--
|
||||||
|
1 files changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c
|
||||||
|
index a642553..b662a7e 100644
|
||||||
|
--- a/src/pulsecore/core-util.c
|
||||||
|
+++ b/src/pulsecore/core-util.c
|
||||||
|
@@ -680,7 +680,7 @@ int pa_make_realtime(int rtprio) {
|
||||||
|
}
|
||||||
|
|
||||||
|
for (p = rtprio-1; p >= 1; p--)
|
||||||
|
- if (set_scheduler(p)) {
|
||||||
|
+ if (set_scheduler(p) >= 0) {
|
||||||
|
pa_log_info("Successfully enabled SCHED_RR scheduling for thread, with priority %i, which is lower than the requested %i.", p, rtprio);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
@@ -750,7 +750,7 @@ int pa_raise_priority(int nice_level) {
|
||||||
|
}
|
||||||
|
|
||||||
|
for (n = nice_level+1; n < 0; n++)
|
||||||
|
- if (set_nice(n) > 0) {
|
||||||
|
+ if (set_nice(n) >= 0) {
|
||||||
|
pa_log_info("Successfully acquired nice level %i, which is lower than the requested %i.", n, nice_level);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
--
|
||||||
|
1.6.0.2
|
||||||
|
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jan 22 01:05:20 UTC 2011 - sreeves@novell.com
|
||||||
|
|
||||||
|
- Add bnc666350-fix-incorrect-check-of-return-value.patch
|
||||||
|
- Fix ownership of /var/lib/gdm for bnc#638052
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Nov 26 10:07:49 CET 2010 - dimstar@opensuse.org
|
Thu Nov 26 10:07:49 CET 2010 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
@ -30,6 +30,8 @@ Source1: default.pa-for-gdm
|
|||||||
Source2: setup-pulseaudio
|
Source2: setup-pulseaudio
|
||||||
Source99: baselibs.conf
|
Source99: baselibs.conf
|
||||||
Patch0: disabled-start.diff
|
Patch0: disabled-start.diff
|
||||||
|
# PATCH-FIX-UPSTREAM bnc666350-fix-incorrect-check-of-return-value.patch sreeves@novell.com -- fix to correctly report realtime status
|
||||||
|
Patch1: bnc666350-fix-incorrect-check-of-return-value.patch
|
||||||
Url: http://pulseaudio.org
|
Url: http://pulseaudio.org
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: alsa-devel
|
BuildRequires: alsa-devel
|
||||||
@ -243,6 +245,7 @@ This package contains GDM integration hooks for the PulseAudio sound server.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -T -b0
|
%setup -q -T -b0
|
||||||
%patch0
|
%patch0
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf
|
autoreconf
|
||||||
@ -495,7 +498,7 @@ groupadd -r pulse-access &>/dev/null || :
|
|||||||
|
|
||||||
%files gdm-hooks
|
%files gdm-hooks
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir %{_localstatedir}/lib/gdm
|
%attr(0750, gdm, gdm) %dir %{_localstatedir}/lib/gdm
|
||||||
%attr(0700, gdm, gdm) %dir %{_localstatedir}/lib/gdm/.pulse
|
%attr(0700, gdm, gdm) %dir %{_localstatedir}/lib/gdm/.pulse
|
||||||
%attr(0600, gdm, gdm) %{_localstatedir}/lib/gdm/.pulse/default.pa
|
%attr(0600, gdm, gdm) %{_localstatedir}/lib/gdm/.pulse/default.pa
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user