]> code.delx.au - pulseaudio/commitdiff
card: Set initial profile availability state
authorMikel Astiz <mikel.astiz@bmw-carit.de>
Tue, 19 Feb 2013 17:26:03 +0000 (18:26 +0100)
committerTanu Kaskinen <tanuk@iki.fi>
Tue, 19 Feb 2013 17:31:54 +0000 (19:31 +0200)
Commit afd33da56a0b174c43ca44bce21b8ef0efaca1fa introduces this new
flag but the default initial value is missing, considering that
pa_xmalloc is used to allocate the memory.

src/pulsecore/card.c

index 5ea8a6395933105a3b50089077022a65bad8ec71..6149d2b3d73b097b92395af81c35b2027e7a6d78 100644 (file)
@@ -51,6 +51,7 @@ pa_card_profile *pa_card_profile_new(const char *name, const char *description,
     c->priority = 0;
     c->n_sinks = c->n_sources = 0;
     c->max_sink_channels = c->max_source_channels = 0;
+    c->available = PA_AVAILABLE_UNKNOWN;
 
     return c;
 }