mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
card: Set initial profile availability state
Commit afd33da56a introduces this new
flag but the default initial value is missing, considering that
pa_xmalloc is used to allocate the memory.
This commit is contained in:
parent
2f0f07a755
commit
a40d83a472
1 changed files with 1 additions and 0 deletions
|
|
@ -51,6 +51,7 @@ pa_card_profile *pa_card_profile_new(const char *name, const char *description,
|
||||||
c->priority = 0;
|
c->priority = 0;
|
||||||
c->n_sinks = c->n_sources = 0;
|
c->n_sinks = c->n_sources = 0;
|
||||||
c->max_sink_channels = c->max_source_channels = 0;
|
c->max_sink_channels = c->max_source_channels = 0;
|
||||||
|
c->available = PA_AVAILABLE_UNKNOWN;
|
||||||
|
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue