~diwic/ubuntu/lucid/pulseaudio/bugfixes

« back to all changes in this revision

Viewing changes to debian/patches/0038_handle_errno_properly.patch

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich
  • Date: 2009-05-05 14:18:20 UTC
  • mfrom: (1.2.4 upstream) (1.1.8 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090505141820-rrr2mtdd1jkllvr8
Tags: 1:0.9.15-1ubuntu1
* Merge from unreleased Debian pulseaudio git, remaining changes:
  - epoch (my stupid fault :S)
  - Don't build against, and create jack package. Jack is not in main
  - use linear resampler to work better with lack of PREEMPT in jaunty's
    -generic kernel config, also change buffer size
  - Add alsa configuration files to route alsa applications via pulseaudio
  - Move libasound2-plugins from Recommends to Depends
  - Add pm-utils sleep hook to suspend (and resume) users' pulseaudio
    daemons
  - patch to fix source/sink and suspend-on-idle race
  - Make initscript more informative in the default case of per-user
    sessions
  - create /var/run/pulse, and make restart more robust
  - add status check for system wide pulseaudio instance
  - LSB {Required-*,Should-*} should specify hal instead of dbus,
    since hal is required (and already requires dbus)
  - indicate that the system pulseaudio instance is being started from the init
    script
  - Install more upstream man pages
  - Link to pacat for parec man page
  - check whether pulseaudio is running before preloading the padsp library
  - Add DEB_OPT_FLAG = -O3 as per recommendation from
    pulseaudio-discuss/2007-December/001017.html
  - cache /usr/share/sounds/ubuntu/stereo/ wav files on pulseaudio load
  - disable glitch free (use tsched=0)
  - Generate a PO template on build
  - add special case to disable pulseaudio loading if accessibility/speech
    is being used
  - the sd wrapper script should not load pulseaudio if pulseaudio is being
    used as a system service
  - add a pulseaudio apport hook
  - fix some typos in README.Debian
  - demote paprefs to suggests
  - drop padevchooser(Recommends) and pavucontrol (Suggests)
  - drop libasyncns-dev build dependency, its in universe
* add libudev-dev as a build-dependency

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Index: pulseaudio-0.9.14/src/pulsecore/core-error.c
2
 
===================================================================
3
 
--- pulseaudio-0.9.14.orig/src/pulsecore/core-error.c   2009-03-05 17:12:02.000000000 -0500
4
 
+++ pulseaudio-0.9.14/src/pulsecore/core-error.c        2009-03-05 17:12:16.000000000 -0500
5
 
@@ -47,6 +47,9 @@
6
 
     char *translated, *t;
7
 
     char errbuf[128];
8
 
 
9
 
+    if (errnum < 0)
10
 
+        errnum = -errnum;
11
 
+
12
 
     if ((t = PA_STATIC_TLS_GET(cstrerror)))
13
 
         pa_xfree(t);
14
 
 
15
 
Index: pulseaudio-0.9.14/src/pulse/error.c
16
 
===================================================================
17
 
--- pulseaudio-0.9.14.orig/src/pulse/error.c    2009-03-05 17:12:34.000000000 -0500
18
 
+++ pulseaudio-0.9.14/src/pulse/error.c 2009-03-05 17:12:54.000000000 -0500
19
 
@@ -66,7 +66,10 @@
20
 
 
21
 
     pa_init_i18n();
22
 
 
23
 
-    if (error < 0 || error >= PA_ERR_MAX)
24
 
+    if (error < 0)
25
 
+        error = -error;
26
 
+
27
 
+    if (error >= PA_ERR_MAX)
28
 
         return NULL;
29
 
 
30
 
     return _(errortab[error]);