summaryrefslogtreecommitdiffstats
path: root/polyp/source.c
diff options
context:
space:
mode:
Diffstat (limited to 'polyp/source.c')
-rw-r--r--polyp/source.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/polyp/source.c b/polyp/source.c
index 2c611651..6ab439d6 100644
--- a/polyp/source.c
+++ b/polyp/source.c
@@ -62,7 +62,7 @@ struct pa_source* pa_source_new(struct pa_core *core, const char *name, int fail
r = pa_idxset_put(core->sources, s, &s->index);
assert(s->index != PA_IDXSET_INVALID && r >= 0);
- pa_sample_snprint(st, sizeof(st), spec);
+ pa_sample_spec_snprint(st, sizeof(st), spec);
fprintf(stderr, "source: created %u \"%s\" with sample spec \"%s\"\n", s->index, s->name, st);
pa_subscription_post(core, PA_SUBSCRIPTION_EVENT_SOURCE | PA_SUBSCRIPTION_EVENT_NEW, s->index);