Commit graph

126 commits

Author SHA1 Message Date
Lennart Poettering
3d6cc026e2 client: introduce auto-connect-localhost= option in client.conf
Partly fixes:

http://pulseaudio.org/ticket/773

Also fixes a security hole since listening on the default port is not
access controlled right now.
2010-01-13 22:08:59 +01:00
Tanu Kaskinen
4c793cfc76 libpulse: Store pa_stream pointers to hashmaps instead of dynarrays.
Since the stream identifiers (channels) are monotonically growing integer, it
isn't a good idea to use them as index to a dynamic array, because the array
will grow all the time. This is not a problem with client connections that
don't create many streams, but, for example, long-running clients that use
libcanberra for playing event sounds, this means that the client connection
effectively leaks memory.
2009-12-03 21:47:46 +00:00
Lennart Poettering
4538523a29 libpulse: introduce pa_context_get_tile_size() call 2009-10-28 23:26:48 +01:00
Colin Guthrie
37e82cec0a device-manager: Add an untested protocol extension.
This is effectively copied from the stream restore extension.
2009-10-01 09:08:28 +01:00
Lennart Poettering
cdbeac6b69 libpulse: as a special exception, don't require a non-NULL context in pa_context_errno 2009-09-17 01:37:23 +02:00
Lennart Poettering
5921324fd3 context: document why we only do minimal cleanups before the autospawn exec() 2009-08-12 21:40:12 +02:00
Lennart Poettering
8343360da1 client: minor modernizations 2009-07-25 03:11:09 +02:00
Lennart Poettering
6ce7d208f0 client: if a child we created was already reaped, assume that it was successful 2009-07-25 01:29:36 +02:00
Lennart Poettering
f6763917ee autospawn: refuse autospawning if process disabled waitpid() 2009-07-24 18:22:13 +02:00
Lennart Poettering
b174a51120 libpulse: minor cleanups 2009-07-01 14:26:07 +02:00
Lennart Poettering
f753ef2a23 rtclock: enable rtclock for our own mainloop implementations 2009-06-22 23:49:40 +02:00
Marc-André Lureau
e4d914c945 rtclock: fix issues found by Lennart 2009-06-20 17:29:34 +03:00
Marc-André Lureau
0955e3d45b Base mainloop on pa_rtclock_now()
Move the mainloop to monotonic based time events.

Introduces 4 helper functions:
pa_{context,core}_rttime_{new,restart}(), that fill correctly a
timeval with the rtclock flag set if the mainloop supports it.

Both mainloop-test and mainloop-test-glib works with rt and timeval
based time events. PulseAudio and clients should be fully functional.

This patch has received several iterations, and this one as been
largely untested.

Signed-off-by: Marc-André Lureau <marca-andre.lureau@nokia.com>
2009-06-20 17:29:31 +03:00
Marc-André Lureau
86caf4520f context: don't fail if session bus is not there
Also invert the order of bus tracking since we expect session_bus to
be present when we check for it. Although that should not change
anything in practise.
2009-05-12 01:33:37 +02:00
Marc-André Lureau
344eea4f58 pulse/context: when NOFAIL, don't try_next_connection() if c->client 2009-04-17 22:41:26 +02:00
Lennart Poettering
4cc4cbd641 client-conf: make setting a default server independant from the autospawn setting 2009-04-13 22:25:09 +02:00
Finn Thain
80e18c8da3 make dbus optional during build
On Tue, 31 Mar 2009, Lennart Poettering wrote:

[snip]
>
> I have now merged your patch. I had to change a few things to make it
> apply cleanly. Since I have no access to Solaris I am unable to test
> this though, so please check if things still work for you.
>
> I also worked around the realpath() issue mostly. It should work fine on
> Solaris now, as well.

Thanks. 0.9.15-test7 seems to work fine.

The only new issue is that configure --without-dbus no longer builds. I
don't need dbus for my purposes (network audio server) and it seems that
dbus is not included with Solaris. A patch for this follows.

Finn
2009-04-10 02:14:07 +02:00
Lennart Poettering
373b5efe51 properly account for seeks in the requested_bytes counter 2009-04-01 23:05:09 +02:00
Lennart Poettering
29a282a41b allow nofail mode only when no server string was specified 2009-03-30 20:31:03 +00:00
Lennart Poettering
b6135b34b3 minor cleanups 2009-03-30 21:07:41 +02:00
Lennart Poettering
3df9eef9d0 take org.pulseaudio.Server instead of org.pulseaudio to match the interface name already used in the HAL module 2009-03-30 21:07:23 +02:00
Lennart Poettering
d33be12fde Merge commit 'elmarco/dbus' 2009-03-30 20:26:27 +02:00
Marc-André Lureau
1dad83b73c pulse: client connect to dbus 2009-03-30 21:05:31 +03:00
Lennart Poettering
65b787d000 notify clients about tlength changes 2009-03-30 18:46:12 +02:00
Lennart Poettering
3122008704 try to detect when stupid clients forks and refuse all service from then on 2009-03-05 04:33:40 +01:00
Colin Guthrie
86dee05aec Use LGPL 2.1 on all files previously using LGPL 2 2009-03-03 20:23:02 +00:00
Lennart Poettering
2d0c68af93 check for ENABLE_LEGACY_RUNTIME_DIR with #ifdef, not #if 2009-02-21 04:14:51 +01:00
Lennart Poettering
b0c0106824 Merge commit 'elmarco/legacy-dir' 2009-02-19 05:02:52 +01:00
Lennart Poettering
be81a681ac if we fail to import a memblock fill in silence to guarantee stability of timing 2009-02-18 21:55:55 +01:00
Marc-André Lureau
05b7440481 pulse/context: add --enable-legacy-runtime-dir 2009-02-18 17:16:01 +02:00
Lennart Poettering
c0fb91db54 drop check for PA_PROP_APPLICATION_NAME since often enough we can deduce this better from g_get_application_name() 2009-02-13 18:01:00 +01:00
Lennart Poettering
823431e447 allow sending meta/policy events to clients 2009-02-12 03:18:05 +01:00
Lennart Poettering
b23efc0a4d add missing eof checks 2009-01-20 02:15:43 +01:00
Lennart Poettering
79ad4e63f6 Make the shared memory segment size configurable
This is useful only on systems where memory overcommit is not available
or disabled.
2008-10-01 01:14:36 +02:00
Lennart Poettering
fb837f0cac rework autospawning to allow to multiple parallel autospawning contexts 2008-09-05 03:22:13 +02:00
Lennart Poettering
994ff984f0 connect to localhost via IP address instead of host name, to avoid needless NSS lookup 2008-09-05 03:20:33 +02:00
Lennart Poettering
13018d62c1 fix a few compiler warnings on older gcc 2008-08-29 23:53:55 +02:00
Lennart Poettering
b7026bf248 add a few more gcc warning flags and fix quite a few problems found by doing so 2008-08-19 22:39:54 +02:00
Lennart Poettering
72f520f93c make gcc shut up 2008-08-09 17:04:27 +02:00
Lennart Poettering
432b4e5f7d don't use PA_GCC_UNUSED anymore 2008-08-09 16:20:29 +02:00
Lennart Poettering
15cebbaceb rework autospawning code to survive multiple pa_contexts in a single process 2008-08-09 03:49:42 +02:00
Lennart Poettering
40ff5fa06f add compatibility with older PA socket paths 2008-08-07 02:39:58 +02:00
Lennart Poettering
f1d2bf8408 add i18n support 2008-08-06 18:54:13 +02:00
Lennart Poettering
98b81636b7 allow extension messages to actually carry information 2008-08-05 19:01:25 +02:00
Lennart Poettering
0cc674d961 wrap protocol extension of module-stream-restore 2008-08-04 19:02:20 +02:00
Lennart Poettering
d0e26a519f Don't fail when we cannot determine the lock file path 2008-06-21 13:55:17 +02:00
Lennart Poettering
8ae83d618e get rid of svn $ keywords 2008-06-18 23:23:21 +03:00
Lennart Poettering
0d0911f9c6 rework shm usage negotiation; merge a few pa_bool_t in a single bit field to save a bit of memory; drop redundant implementation of pa_init_proplist()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2544 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-06-17 18:27:24 +00:00
Lennart Poettering
1337afdee4 enable auto-spawning by default
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2515 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-06-11 17:44:49 +00:00
Colin Guthrie
78ae61217d Perfer client.conf over X11 property variables.
To explain: X11 properties are always set on the root window if pulseaudio is started
during X11 login (which is the most likey time to start it). This means that any settings
specified in client.conf will almost never be used. As the default client.conf is empty
it makes more sense to listen to it if a user cares to bother altering it.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2494 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-06-03 19:22:29 +00:00