summaryrefslogtreecommitdiffstats
path: root/polyp/cli-text.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-09-19 23:12:41 +0000
committerLennart Poettering <lennart@poettering.net>2004-09-19 23:12:41 +0000
commitb118982674effa44aa1687e8bd0d2bc0eb6254b2 (patch)
treeb2a63ba549b374f94a1dec9c1e4e07e05f0b8058 /polyp/cli-text.c
parent70a30530e03ed4c43639575a479d77e38fea56ea (diff)
remove obnoxious assert from module-combine
tagstruct: add support for NULL strings improve pactl correct pa_bytes_snprint() pa_sample_spec_snprint(): don't fail on invalid sample spec rename PA_SAMPLE_SNPRINT_MAX_LENGTH to PA_SAMPLE_SPEC_SNPRINT_MAX git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@222 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/cli-text.c')
-rw-r--r--polyp/cli-text.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/polyp/cli-text.c b/polyp/cli-text.c
index 9932e568..3cedf920 100644
--- a/polyp/cli-text.c
+++ b/polyp/cli-text.c
@@ -88,7 +88,7 @@ char *pa_sink_list_to_string(struct pa_core *c) {
pa_strbuf_printf(s, "%u sink(s) available.\n", pa_idxset_ncontents(c->sinks));
for (sink = pa_idxset_first(c->sinks, &index); sink; sink = pa_idxset_next(c->sinks, &index)) {
- char ss[PA_SAMPLE_SNPRINT_MAX_LENGTH];
+ char ss[PA_SAMPLE_SPEC_SNPRINT_MAX];
pa_sample_spec_snprint(ss, sizeof(ss), &sink->sample_spec);
assert(sink->monitor_source);
pa_strbuf_printf(
@@ -123,7 +123,7 @@ char *pa_source_list_to_string(struct pa_core *c) {
pa_strbuf_printf(s, "%u source(s) available.\n", pa_idxset_ncontents(c->sources));
for (source = pa_idxset_first(c->sources, &index); source; source = pa_idxset_next(c->sources, &index)) {
- char ss[PA_SAMPLE_SNPRINT_MAX_LENGTH];
+ char ss[PA_SAMPLE_SPEC_SNPRINT_MAX];
pa_sample_spec_snprint(ss, sizeof(ss), &source->sample_spec);
pa_strbuf_printf(s, " %c index: %u\n\tname: <%s>\n\tlatency: <%0.0f usec>\n\tsample_spec: <%s>\n",
c->default_source_name && !strcmp(source->name, c->default_source_name) ? '*' : ' ',
@@ -156,7 +156,7 @@ char *pa_source_output_list_to_string(struct pa_core *c) {
pa_strbuf_printf(s, "%u source outputs(s) available.\n", pa_idxset_ncontents(c->source_outputs));
for (o = pa_idxset_first(c->source_outputs, &index); o; o = pa_idxset_next(c->source_outputs, &index)) {
- char ss[PA_SAMPLE_SNPRINT_MAX_LENGTH];
+ char ss[PA_SAMPLE_SPEC_SNPRINT_MAX];
pa_sample_spec_snprint(ss, sizeof(ss), &o->sample_spec);
assert(o->source);
pa_strbuf_printf(
@@ -186,7 +186,7 @@ char *pa_sink_input_list_to_string(struct pa_core *c) {
pa_strbuf_printf(s, "%u sink input(s) available.\n", pa_idxset_ncontents(c->sink_inputs));
for (i = pa_idxset_first(c->sink_inputs, &index); i; i = pa_idxset_next(c->sink_inputs, &index)) {
- char ss[PA_SAMPLE_SNPRINT_MAX_LENGTH];
+ char ss[PA_SAMPLE_SPEC_SNPRINT_MAX];
pa_sample_spec_snprint(ss, sizeof(ss), &i->sample_spec);
assert(i->sink);
pa_strbuf_printf(
@@ -223,7 +223,7 @@ char *pa_scache_list_to_string(struct pa_core *c) {
for (e = pa_idxset_first(c->scache, &index); e; e = pa_idxset_next(c->scache, &index)) {
double l = 0;
- char ss[PA_SAMPLE_SNPRINT_MAX_LENGTH] = "n/a";
+ char ss[PA_SAMPLE_SPEC_SNPRINT_MAX] = "n/a";
if (e->memchunk.memblock) {
pa_sample_spec_snprint(ss, sizeof(ss), &e->sample_spec);