mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
store the default sink/source in proper pa_sink*/pa_source* pointers instead of a string
This commit is contained in:
parent
fc3ff11418
commit
a5401a50a6
11 changed files with 133 additions and 103 deletions
|
|
@ -248,7 +248,7 @@ char *pa_sink_list_to_string(pa_core *c) {
|
|||
"\tchannel map: %s%s%s\n"
|
||||
"\tused by: %u\n"
|
||||
"\tlinked by: %u\n",
|
||||
c->default_sink_name && !strcmp(sink->name, c->default_sink_name) ? '*' : ' ',
|
||||
sink == c->default_sink ? '*' : ' ',
|
||||
sink->index,
|
||||
sink->name,
|
||||
sink->driver,
|
||||
|
|
@ -339,7 +339,7 @@ char *pa_source_list_to_string(pa_core *c) {
|
|||
"\tchannel map: %s%s%s\n"
|
||||
"\tused by: %u\n"
|
||||
"\tlinked by: %u\n",
|
||||
c->default_source_name && !strcmp(source->name, c->default_source_name) ? '*' : ' ',
|
||||
c->default_source == source ? '*' : ' ',
|
||||
source->index,
|
||||
source->name,
|
||||
source->driver,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue