Commit graph

2982 commits

Author SHA1 Message Date
Tom Bamford
d636a8c046 Multicast SDP packets sent with same IP TTL as RTP packets
Signed-off-by: Lennart Poettering <lennart@poettering.net>
2009-01-12 20:34:43 +01:00
Luiz Augusto von Dentz
4fdebe9404 Update module-bluetooth-device to the new ipc. 2009-01-12 20:34:24 +01:00
Lennart Poettering
bed16cb422 A few minor cleanups and updates 2009-01-12 20:34:04 +01:00
Lennart Poettering
56e78332c5 Rework handling of the PA_SINK_LATENCY/PA_SOURCE_LATENCY flags 2009-01-12 20:33:44 +01:00
Lennart Poettering
03bdc0795f fix a gcc warning 2009-01-12 20:33:20 +01:00
Lennart Poettering
ed96f11f55 If we cannot open an ALSA device with SND_PCM_NO_AUTO_FORMAT retry without
This should fix compatibility with some sound cards which only support
24 bit packed samples.
2009-01-12 20:30:27 +01:00
Lennart Poettering
9e4599820a make sure we don't hit an assert when we issue two rewind requests in a
single iteration

Closes rhbz 472757.
2009-01-12 20:30:10 +01:00
Lennart Poettering
0cb0d683be Implement PA_SOURCE_MESSAGE_GET_LATENCY
The pipe source needs to implement PA_SOURCE_MESSAGE_GET_LATENCY since
we'll otherwise hit an assert.

Closes #424.
2009-01-12 20:29:12 +01:00
Lennart Poettering
e4cc38055f Use FIONREAD instead of TIOCINQ
On Linux the two ioctls FIONREAD and TIOCINQ share the same number.
However TIOCINQ is used for terminals while FIONREAD is used (among
others) for sockets and pipes. Hence use FIONREAD here since it seems
more appropriate.
2009-01-12 20:28:56 +01:00
Lennart Poettering
6c2c7a5d42 Allow access("/dev/dsp", W_OK) succeed
Some stupid apps (such as X-lite Softphone) check for W_OK on /dev/dsp.
This is of course crazy but easy for us to support.

Closes rhbz #474313
2009-01-12 20:28:44 +01:00
Lennart Poettering
5fc8444a4b Make sure we drop CAP_NICE if RT is not allowed
but make sure we still allow RT if RLIMIT_RTPRIO is properly set when PA
is called.
2009-01-12 20:28:31 +01:00
Lennart Poettering
cc23b29135 downgrade a few warnings 2009-01-12 20:28:15 +01:00
Lennart Poettering
4842520429 it's better to always use the index of a module instead of the pa_module* 2009-01-12 20:28:00 +01:00
Lennart Poettering
06dd737e00 unload tunnel modules from a new stack frame 2009-01-12 20:27:49 +01:00
Lennart Poettering
f786c6923c actually unload the modules from a new stack frame 2009-01-12 20:27:39 +01:00
Lennart Poettering
92bb3b9d61 Don't store pointer to pa_module
pa_module pointers might become invalid at any time, so we use the
stable uin32_t index of the module for identifying or modules instead.
2009-01-12 20:27:30 +01:00
Lennart Poettering
7272c02610 introduce new function pa_module_unload_request_by_index 2009-01-12 20:27:20 +01:00
Luiz Augusto von Dentz
09e3c5e716 Fix bug walking on module list. 2009-01-12 20:26:39 +01:00
Lennart Poettering
a9131ff2ca Load module-volume-restore and module-device-restore before all other modules
Since m-v-r and m-d-r become active in the FIXATE hooks for
stream/device creation we need to make sure the modules are loaded
before the first devices/streams are created.
2009-01-12 20:25:45 +01:00
Lennart Poettering
6f4d8bc2b4 Pass GDBM_NOLOCK to gdbm
gdbm still uses BSD lockf for locking which is incompatible with NFS.
Since we don't need the locking here since the db files in question
should never be accessed by more than one process since they are
per-home-dir and per-machine we can disable locking without any ill
results.

This should fix rhbz #471279.
2009-01-12 20:23:39 +01:00
Lennart Poettering
a66d2ed7d1 Don't mix front-center into rear channels
If there's a center channel on input that is not available on output
make sure we mix front-center only into front-left/right and rear-center
into rear-left/right.

Closes #400
2009-01-12 20:23:28 +01:00
Lennart Poettering
d72b6eb7de Fix return value of --dump-resample-methods
We should return 0 when --dump-resample-methods is called.

Problem identified by "hchen59".

Closes bug #407.
2009-01-12 20:23:15 +01:00
Lennart Poettering
08ee14177d Check if environ is actually set before we use it
Some applications seem to set **environ to NULL for various reasons.
Before we iterate through it we thus need to make sure it is actually
set to make sure we don't segfault.

Closes rhbz #473080
2009-01-12 20:23:01 +01:00
Lennart Poettering
3bef1a94b4 Make sure libpulse never gets unloaded
When an .so is unloaded during runtime all TLS keys it has registered
need to be freed because the destructor callbacks of the TLS key might
otherwise point to invalid code. Hence it would appear sensible to
destruct the TLS keys from a function marked as __attribute__
((destructor)). However functions marked like that are also called when
an application terminates, on exit(). If a thread continues to run until
the very exit it might still want to access that TLS data. The
destructor functions are called while all other threads are still
running. If __attribute ((destructor)) is used to destruct TLS keys for
such threads this might hence cause a crash when the application shuts
down.

To circumvent this problem we'll now compile libpulse with -z nodelete,
to make it unnecessary to delete the TLS data ever and thus avoiding the
problem. It's suboptimal, but for now I see no better solution.
2008-11-01 21:48:29 +01:00
Lennart Poettering
68e9a48bb9 make shm marker architecture independant, patch from michich, closes #401 2008-11-01 21:45:12 +01:00
Lennart Poettering
ac8af20d8f make sure to use 64bit rounding even on 32bit machines when converting to pa_usec_t 2008-10-24 04:40:33 +02:00
Lennart Poettering
6f4b228742 fix build 2008-10-23 23:23:39 +02:00
Lennart Poettering
09279f7634 warn if ALSA wakes us up and there is actually nothing to do 2008-10-23 23:05:08 +02:00
Lennart Poettering
bfdad535da don't set the volume of pacat unless it is explicitly set 2008-10-23 23:04:55 +02:00
Lennart Poettering
8e2a48a7a2 make the debug trap macro a proper macro in macro.h 2008-10-23 23:04:35 +02:00
Lennart Poettering
0796f5a2d6 Try to catch certain driver errors
... by verifying return values of snd_pcm_avail_update() and
snd_pcm_begin_mmap() for their sanenness.
2008-10-23 23:04:22 +02:00
Lennart Poettering
b041aac9b1 include log.h near the end so that macro.h can be included in log.h and defines pa_bool_t properly 2008-10-23 23:03:22 +02:00
Lennart Poettering
ab1139ffd3 convert argument to boolean int in PA_UNLIKELY, too 2008-10-23 23:03:08 +02:00
Lennart Poettering
74898ff657 fix invalid validity check 2008-10-23 23:02:15 +02:00
Lennart Poettering
f3770fa7af Make missing git-changelog.perl non-fatal 2008-10-23 23:01:13 +02:00
Lennart Poettering
ac4b0afadb Fix spelling of privilige 2008-10-23 23:01:00 +02:00
Lennart Poettering
af133f504f always check for libtool prefix binary name to avoid confusion when using both installed and run-from-build-tree versions of PA in parallel 2008-10-23 23:00:49 +02:00
Luiz Augusto von Dentz
6ad65da869 Fix possible invalid read while attempting to load module-bluetooth-device. 2008-10-23 23:00:16 +02:00
Lennart Poettering
9fd82c1964 properly remove dbus matches an filters when unloading m-b-d 2008-10-23 22:58:19 +02:00
Colin Guthrie
cab7cc3dfd Fix two typos that broke tunnels 2008-10-23 22:58:09 +02:00
Colin Guthrie
c72a7db3b1 Fix a potential C++/C99 ism, add a log message on error condition
Signed-off-by: Lennart Poettering <lennart@poettering.net>
2008-10-23 22:55:13 +02:00
Lennart Poettering
220c9c0c20 define 0dB in PA as maximum amplification 2008-10-23 22:54:20 +02:00
Lennart Poettering
f0a2294f68 if the channel map was modified due to PA_SINK_INPUT_FIX_CHANNELS, remap the specified volume properly 2008-10-23 22:53:31 +02:00
Lennart Poettering
215f1fbffa use pa_channel_map_init_extend() instead of pa_channel_map_init_auto() as channel map for sink inputs/source outputs in case no map is specified 2008-10-23 22:53:12 +02:00
Lennart Poettering
fc2ba1f914 instead of resetting virtual_volume unconditionally on initialization, do so only when no volume was set before 2008-10-23 22:52:41 +02:00
Luiz Augusto von Dentz
31318274ff Unload module-bluetooth-device if the remote device disconnects. 2008-10-23 22:50:10 +02:00
Lennart Poettering
b6a802717b Initialize exit_idle_time to -1 instead of 0 when in system mode.
Spotted by Rafał Mużyło.
2008-10-23 22:49:59 +02:00
Lennart Poettering
fa93cb71e8 make distcheck pass 2008-10-06 03:35:46 +02:00
Lennart Poettering
e26ffc9b50 Merge branch 'master' of ssh://rootserver/home/lennart/git/public/pulseaudio 2008-10-06 02:39:36 +02:00
Lennart Poettering
be667af03f Merge branch 'master' of ssh://rootserver/home/lennart/git/public/pulseaudio 2008-10-06 02:39:24 +02:00