mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
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. |
||
|---|---|---|
| .. | ||
| daemon | ||
| modules | ||
| pulse | ||
| pulsecore | ||
| tests | ||
| utils | ||
| .gitignore | ||
| depmod.py | ||
| Makefile.am | ||
| map-file | ||