mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
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:
parent
af1b0317f6
commit
bfa6604b1d
15 changed files with 69 additions and 41 deletions
|
|
@ -366,7 +366,8 @@ 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");
|
||||
goto fail;
|
||||
|
|
@ -457,7 +458,8 @@ int pa__init(pa_core *c, pa_module*m) {
|
|||
}
|
||||
u->sink->userdata = u;
|
||||
pa_sink_set_owner(u->sink, m);
|
||||
u->sink->description = pa_sprintf_malloc("ALSA PCM on %s (%s)", dev, snd_pcm_info_get_name(pcm_info));
|
||||
pa_sink_set_description(u->sink, 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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue