mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-11 13:30:02 -05:00
sink, source: Add pa_sink/source_get_description()
This commit is contained in:
parent
8d00e420f7
commit
85d0b0bd51
22 changed files with 96 additions and 123 deletions
|
|
@ -197,14 +197,12 @@ static void reserve_done(struct userdata *u) {
|
|||
}
|
||||
|
||||
static void reserve_update(struct userdata *u) {
|
||||
const char *description;
|
||||
pa_assert(u);
|
||||
|
||||
if (!u->sink || !u->reserve)
|
||||
return;
|
||||
|
||||
if ((description = pa_proplist_gets(u->sink->proplist, PA_PROP_DEVICE_DESCRIPTION)))
|
||||
pa_reserve_wrapper_set_application_device_name(u->reserve, description);
|
||||
pa_reserve_wrapper_set_application_device_name(u->reserve, pa_sink_get_description(u->sink));
|
||||
}
|
||||
|
||||
static int reserve_init(struct userdata *u, const char *dname) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue