diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-01-28 01:46:27 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-01-28 01:46:27 +0100 |
commit | a5401a50a67ebf1d86e979ee5556961b24a25400 (patch) | |
tree | fd5d1d48cf5810135dbc28f3f3f63519038b037a /src/pulsecore/cli-text.c | |
parent | fc3ff114186020637e1dfbe23ff01d00b0452ccf (diff) |
store the default sink/source in proper pa_sink*/pa_source* pointers instead of a string
Diffstat (limited to 'src/pulsecore/cli-text.c')
-rw-r--r-- | src/pulsecore/cli-text.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pulsecore/cli-text.c b/src/pulsecore/cli-text.c index 647fc1b5..57129d0c 100644 --- a/src/pulsecore/cli-text.c +++ b/src/pulsecore/cli-text.c @@ -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, |