alsa-mixer: Have valid proplist for synthesized path as well.
authorJuho Hämäläinen <juho.hamalainen@nomovok.com>
Thu, 10 Dec 2015 13:09:34 +0000 (15:09 +0200)
committerDavid Henningsson <david.henningsson@canonical.com>
Fri, 11 Dec 2015 09:05:41 +0000 (10:05 +0100)
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@nomovok.com>
src/modules/alsa/alsa-mixer.c

index 3f51717..515b285 100644 (file)
@@ -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;