~diwic/ubuntu/lucid/pulseaudio/bugfixes

« back to all changes in this revision

Viewing changes to src/modules/rtp/sap.c

  • 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:
5
5
 
6
6
  PulseAudio is free software; you can redistribute it and/or modify
7
7
  it under the terms of the GNU Lesser General Public License as published
8
 
  by the Free Software Foundation; either version 2 of the License,
 
8
  by the Free Software Foundation; either version 2.1 of the License,
9
9
  or (at your option) any later version.
10
10
 
11
11
  PulseAudio is distributed in the hope that it will be useful, but
38
38
#include <sys/filio.h>
39
39
#endif
40
40
 
 
41
#ifdef HAVE_SYS_UIO_H
 
42
#include <sys/uio.h>
 
43
#endif
 
44
 
41
45
#include <pulse/xmalloc.h>
42
46
 
43
47
#include <pulsecore/core-error.h>
83
87
        return -1;
84
88
    }
85
89
 
 
90
#ifdef HAVE_IPV6
86
91
    pa_assert(sa->sa_family == AF_INET || sa->sa_family == AF_INET6);
 
92
#else
 
93
    pa_assert(sa->sa_family == AF_INET);
 
94
#endif
87
95
 
88
96
    header = htonl(((uint32_t) 1 << 29) |
 
97
#ifdef HAVE_IPV6
89
98
                   (sa->sa_family == AF_INET6 ? (uint32_t) 1 << 28 : 0) |
 
99
#endif
90
100
                   (goodbye ? (uint32_t) 1 << 26 : 0) |
91
101
                   (c->msg_id_hash));
92
102
 
93
103
    iov[0].iov_base = &header;
94
104
    iov[0].iov_len = sizeof(header);
95
105
 
96
 
    iov[1].iov_base = sa->sa_family == AF_INET ? (void*) &((struct sockaddr_in*) sa)->sin_addr : (void*) &((struct sockaddr_in6*) sa)->sin6_addr;
97
 
    iov[1].iov_len = sa->sa_family == AF_INET ? 4U : 16U;
 
106
    if (sa->sa_family == AF_INET) {
 
107
        iov[1].iov_base = (void*) &((struct sockaddr_in*) sa)->sin_addr;
 
108
        iov[1].iov_len = 4U;
 
109
#ifdef HAVE_IPV6
 
110
    } else {
 
111
        iov[1].iov_base = (void*) &((struct sockaddr_in6*) sa)->sin6_addr;
 
112
        iov[1].iov_len = 16U;
 
113
#endif
 
114
    }
98
115
 
99
116
    iov[2].iov_base = (char*) MIME_TYPE;
100
117
    iov[2].iov_len = sizeof(MIME_TYPE);