pulsesink: share the PA context between all clients with the same name
authorPhilippe Normand <pnormand@igalia.com>
Mon, 16 Aug 2010 07:12:04 +0000 (09:12 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 4 Sep 2010 12:52:06 +0000 (14:52 +0200)
commit69a397c32f4baf07a7b2937c610f9e8f383e9ae9
treee2776b1d19653eb7460e3587db2aa2836673af83
parent2c5976d355ed703288bcb0e832ddb999b157ba6e
pulsesink: share the PA context between all clients with the same name

Avoid to create a new PA context for each new client by using a hash
table containing the list of ring-buffers and the shared PA context
for each client. Doing this will improve application memory usage in
the cases where multiple pipelines involving multiple pulsesink
elements are used.

Fixes bug #624338.
ext/pulse/pulsesink.c