pulseaudio/src
Georg Chini 3bb94c4e83 echo-cancel: Fix segfault during profile switch
When module-echo-cancel is loaded and there is only one sound card, then during a
profile switch, all sinks and sources can become temporarily unavailable. If
module-always sink is loaded, it will load a null-sink in that situation. If
also module-switch-on-connect is loaded, it will try to move the sink-inputs to
the new null-sink. If a sink-input was connected to the echo-cancel sink,
pa_sink_input_start_move() will send a PA_SINK_GET_LATENCY message to the
echo-cancel sink. The message handler will then in turn call
pa_sink_get_latency_within_thread() for the invalid master sink of module-echo-cancel.
This lead to a segfault.

This patch checks in the message handler if the master sink (or source) is valid and
returns 0 if not.
2017-04-24 20:30:48 +02:00
..
daemon sink, source: Add a mode to avoid resampling if possible 2017-01-30 13:54:43 +05:30
modules echo-cancel: Fix segfault during profile switch 2017-04-24 20:30:48 +02:00
pulse sample.c: Allow module-loopback to exceed PA_RATE_MAX 2017-04-14 15:03:56 +02:00
pulsecore sink: Add missing 'hifi' form factor to priorities 2017-04-19 17:04:35 +03:00
tests thread-test: fix deadlock 2017-01-26 07:56:54 +02:00
utils build: Use #ifdef to check for #defines 2017-03-08 14:31:29 +01:00
.gitignore pulse: Add a JSON-parsing library 2016-06-22 21:04:47 +05:30
depmod.py update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
Makefile.am build-sys: FlatCarbon is dead. Good riddance. 2017-02-27 16:45:49 +02:00
map-file volume: Add LFE balance API 2015-10-30 09:13:10 +02:00