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
|
|
@ -243,6 +243,7 @@ int pa__init(pa_core *c, pa_module*m) {
|
|||
int do_connect = 1;
|
||||
unsigned i;
|
||||
const char **ports = NULL, **p;
|
||||
char *t;
|
||||
|
||||
assert(c);
|
||||
assert(m);
|
||||
|
|
@ -326,7 +327,8 @@ int pa__init(pa_core *c, pa_module*m) {
|
|||
|
||||
u->source->userdata = u;
|
||||
pa_source_set_owner(u->source, m);
|
||||
u->source->description = pa_sprintf_malloc("Jack source (%s)", jack_get_client_name(u->client));
|
||||
pa_source_set_description(u->source, t = pa_sprintf_malloc("Jack source (%s)", jack_get_client_name(u->client)));
|
||||
pa_xfree(t);
|
||||
u->source->get_latency = source_get_latency_cb;
|
||||
|
||||
jack_set_process_callback(u->client, jack_process, u);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue