don't set the sink/source descriptions manually, use the new functions pa_{sink,source}_set_description() instead

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1205 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2006-08-11 23:58:55 +00:00
parent af1b0317f6
commit bfa6604b1d
15 changed files with 69 additions and 41 deletions

View file

@ -359,6 +359,7 @@ int pa__init(pa_core *c, pa_module*m) {
size_t frame_size;
snd_pcm_info_t *pcm_info = NULL;
int err;
char *t;
if (!(ma = pa_modargs_new(m->argument, valid_modargs))) {
pa_log(__FILE__": failed to parse module arguments");
@ -450,7 +451,8 @@ int pa__init(pa_core *c, pa_module*m) {
}
}
pa_source_set_owner(u->source, m);
u->source->description = pa_sprintf_malloc("ALSA PCM on %s (%s)", dev, snd_pcm_info_get_name(pcm_info));
pa_source_set_description(u->source, t = pa_sprintf_malloc("ALSA PCM on %s (%s)", dev, snd_pcm_info_get_name(pcm_info)));
pa_xfree(t);
u->pcm_fdl = pa_alsa_fdlist_new();
assert(u->pcm_fdl);