[PATCH] virtual sources and sinks: Fix possible segfault

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux