[pulseaudio-discuss] [PATCH] alsa-mixer: Have valid proplist for synthesized path as well.

David Henningsson david.henningsson at canonical.com
Fri Dec 11 01:08:46 PST 2015


Applied. Thanks!

On 2015-12-10 14:09, Juho Hämäläinen wrote:
> When synthesized alsa path is freed there is an assert from NULL
> proplist. Create empty proplist for the path to fix.
>
> Signed-off-by: Juho Hämäläinen <juho.hamalainen at nomovok.com>
> ---
>   src/modules/alsa/alsa-mixer.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/src/modules/alsa/alsa-mixer.c b/src/modules/alsa/alsa-mixer.c
> index 3f51717..515b285 100644
> --- a/src/modules/alsa/alsa-mixer.c
> +++ b/src/modules/alsa/alsa-mixer.c
> @@ -2621,6 +2621,7 @@ pa_alsa_path *pa_alsa_path_synthesize(const char *element, pa_alsa_direction_t d
>       p = pa_xnew0(pa_alsa_path, 1);
>       p->name = pa_xstrdup(element);
>       p->direction = direction;
> +    p->proplist = pa_proplist_new();
>
>       e = pa_xnew0(pa_alsa_element, 1);
>       e->path = p;
>

-- 
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic


More information about the pulseaudio-discuss mailing list