[pulseaudio-discuss] [PATCH] virtual sources and sinks: Fix possible segfault

Tanu Kaskinen tanuk at iki.fi
Mon Apr 24 13:04:47 UTC 2017


On Sun, 2017-04-23 at 20:31 +0200, Georg Chini wrote:
> Several virtual sources and sinks apart from module-echo-cancel also query the master
> sink or source to estimate the current latency. Those modules might potentially show
> the bug that is described for module-echo-cancel in bug 100277.
> 
> This patch checks in the message handlers for the PA_{SINK,SOURCE}_MESSAGE_GET_LATENCY
> if the master sink or source is valid and returns 0 as latency if not.
> ---
>  src/modules/module-ladspa-sink.c           | 3 ++-
>  src/modules/module-remap-sink.c            | 3 ++-
>  src/modules/module-remap-source.c          | 3 ++-
>  src/modules/module-virtual-sink.c          | 3 ++-
>  src/modules/module-virtual-source.c        | 3 ++-
>  src/modules/module-virtual-surround-sink.c | 3 ++-
>  6 files changed, 12 insertions(+), 6 deletions(-)

Looks good to me.

-- 
Tanu

https://www.patreon.com/tanuk


More information about the pulseaudio-discuss mailing list