Commit graph

3206 commits

Author SHA1 Message Date
Luiz Augusto von Dentz
5db081a898 Disable warnings for bluetooth-device-module. 2008-12-22 14:24:06 -03:00
Lennart Poettering
03aa91dea7 make sure we don't hit an assert when we issue two rewind requests in a
single iteration

Closes rhbz 472757.
2008-12-21 17:55:29 +01:00
Lennart Poettering
606c9caa0b 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.
2008-12-21 13:34:56 +01:00
Lennart Poettering
10cc4ba1ca 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.
2008-12-21 13:33:32 +01:00
Lennart Poettering
63fc26ed03 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
2008-12-18 15:24:02 +01:00
Lennart Poettering
1d2e5cba52 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.
2008-12-18 01:25:54 +01:00
Lennart Poettering
d71d79cd45 downgrade a few warnings 2008-12-17 22:58:17 +01:00
Lennart Poettering
906d06bd24 it's better to always use the index of a module instead of the pa_module* 2008-12-17 21:32:40 +01:00
Lennart Poettering
f5d40fa448 unload tunnel modules from a new stack frame 2008-12-17 21:27:07 +01:00
Lennart Poettering
b95539b18b actually unload the modules from a new stack frame 2008-12-17 21:20:51 +01:00
Lennart Poettering
86c6fd85f1 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.
2008-12-17 21:19:53 +01:00
Lennart Poettering
c5b8eb7edf introduce new function pa_module_unload_request_by_index 2008-12-17 21:19:34 +01:00
Luiz Augusto von Dentz
dcd498c5ad Fix bug walking on module list. 2008-12-17 21:06:46 +01:00
Lennart Poettering
82f09b6d8f Don't hit an assert when checking for idleness
Closes #398
2008-12-17 21:03:17 +01:00
Lennart Poettering
cb6a919730 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.
2008-12-17 20:30:01 +01:00
Lennart Poettering
3f20a152be 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.
2008-12-17 20:22:42 +01:00
Lennart Poettering
209a8d7b55 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
2008-12-17 19:53:58 +01:00
Lennart Poettering
b8fe1b683e fix implementation of bind now ltdl loader for libtool 2.2 2008-12-16 19:11:16 +01:00
Lennart Poettering
e4aa5f2115 Fix return value of --dump-resample-methods
We should return 0 when --dump-resample-methods is called.

Problem identified by "hchen59".

Closes bug #407.
2008-12-16 18:17:21 +01:00
Lennart Poettering
8977b2e61d libtool 2.2 updates 2008-12-16 14:25:31 +01:00
Lennart Poettering
7013849354 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
2008-12-16 14:03:40 +01:00
Lennart Poettering
2ee9276d97 Merge commit 'flameeyes/libtool-2.2' 2008-12-16 13:55:06 +01:00
Timo Jyrinki
55d846ff1e Argh, send pulseaudio Finnish translation (instead of paprefs) by Timo Jyrinki.
Transmitted-via: Transifex (translate.fedoraproject.org)
2008-12-01 16:51:15 +00:00
Timo Jyrinki
fe5c651b2f Add fi (Finnish) to LINGUAS.
Transmitted-via: Transifex (translate.fedoraproject.org)
2008-12-01 16:43:35 +00:00
Timo Jyrinki
ba640718b1 Add Finnish (fi) translation by Timo Jyrinki.
Transmitted-via: Transifex (translate.fedoraproject.org)
2008-12-01 16:41:55 +00:00
sainrysec
e9ca86084a Only creat zh_CN.po
Transmitted-via: Transifex (translate.fedoraproject.org)
2008-11-23 12:12:04 +00:00
Henrique Junior
7f9a6ae1a4 Updated brazilian portuguese translation
Transmitted-via: Transifex (translate.fedoraproject.org)
2008-11-21 03:29:21 +00:00
Piotr Drąg
946b34bb8b Updated Polish translation
Transmitted-via: Transifex (translate.fedoraproject.org)
2008-11-11 16:17:30 +00:00
Xavier Conde
7582bf52c3 Added catalan locale
Transmitted-via: Transifex (translate.fedoraproject.org)
2008-11-07 23:18:53 +00:00
Xavier Conde
69aaaf11a4 Added catalan translation
Transmitted-via: Transifex (translate.fedoraproject.org)
2008-11-07 23:17:30 +00:00
Lennart Poettering
f826ded33d make shm marker architecture independant, patch from michich, closes #401 2008-11-01 21:41:07 +01:00
Lennart Poettering
84cd233035 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:11:48 +01:00
Lennart Poettering
58b53bbc1a a bit of pa_bool_t'ization 2008-11-01 21:10:26 +01:00
Lennart Poettering
adc2973c8d Implement new flags DONT_INHIBIT_AUTO_SUSPEND and START_UNMUTED 2008-10-26 19:32:04 +01:00
Lennart Poettering
c180cb5c48 bump micro version 2008-10-25 17:45:21 +02:00
Lennart Poettering
1d978cea85 Merge branch 'new-world-order'
Conflicts:
	src/Makefile.am
2008-10-25 01:23:02 +02:00
Lennart Poettering
b712e7b13d make sure to use 64bit rounding even on 32bit machines when converting to pa_usec_t 2008-10-24 04:34:10 +02:00
Lennart Poettering
3294c89adb warn if ALSA wakes us up and there is actually nothing to do 2008-10-22 23:55:52 +02:00
Lennart Poettering
6ff9c1fb62 don't set the volume of pacat unless it is explicitly set 2008-10-22 22:48:53 +02:00
Lennart Poettering
a2b3d252af update map file 2008-10-22 20:38:11 +02:00
Lennart Poettering
1cd25f1485 reorder setting of AM_CFLAGS a bit 2008-10-22 20:37:58 +02:00
Lennart Poettering
ef0cc74567 a lot more build system updates 2008-10-22 20:36:21 +02:00
Lennart Poettering
695d300156 make new build logic actually work 2008-10-22 02:22:40 +02:00
Lennart Poettering
b978d842ab update map file 2008-10-22 02:22:19 +02:00
Fabian Affolter
8dce771337 Updated German translation
Transmitted-via: Transifex (translate.fedoraproject.org)
2008-10-21 23:00:07 +00:00
Lennart Poettering
df6e38bfd2 temporary commit to allow flameeyes a look 2008-10-21 23:55:33 +02:00
Lennart Poettering
260fc50b36 reorder setting of AM_CFLAGS a bit 2008-10-21 22:05:13 +02:00
Lennart Poettering
c4b346259f make the debug trap macro a proper macro in macro.h 2008-10-21 22:04:22 +02:00
Lennart Poettering
ef9f3f6ec4 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-21 20:00:36 +02:00
Lennart Poettering
16471915af make log meta, time, backtrace configurable using command line 2008-10-21 19:16:49 +02:00