mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
Allow calling pa_{sink|source}_update_proplist() without an actual proprlist
This commit is contained in:
parent
50695d95d1
commit
c64d8cbcc7
2 changed files with 4 additions and 5 deletions
|
|
@ -1202,11 +1202,10 @@ void pa_sink_mute_changed(pa_sink *s, pa_bool_t new_muted) {
|
|||
|
||||
/* Called from main thread */
|
||||
pa_bool_t pa_sink_update_proplist(pa_sink *s, pa_update_mode_t mode, pa_proplist *p) {
|
||||
|
||||
pa_sink_assert_ref(s);
|
||||
pa_assert(p);
|
||||
|
||||
pa_proplist_update(s->proplist, mode, p);
|
||||
if (p)
|
||||
pa_proplist_update(s->proplist, mode, p);
|
||||
|
||||
if (PA_SINK_IS_LINKED(s->state)) {
|
||||
pa_hook_fire(&s->core->hooks[PA_CORE_HOOK_SINK_PROPLIST_CHANGED], s);
|
||||
|
|
|
|||
|
|
@ -744,9 +744,9 @@ void pa_source_mute_changed(pa_source *s, pa_bool_t new_muted) {
|
|||
/* Called from main thread */
|
||||
pa_bool_t pa_source_update_proplist(pa_source *s, pa_update_mode_t mode, pa_proplist *p) {
|
||||
pa_source_assert_ref(s);
|
||||
pa_assert(p);
|
||||
|
||||
pa_proplist_update(s->proplist, mode, p);
|
||||
if (p)
|
||||
pa_proplist_update(s->proplist, mode, p);
|
||||
|
||||
if (PA_SOURCE_IS_LINKED(s->state)) {
|
||||
pa_hook_fire(&s->core->hooks[PA_CORE_HOOK_SOURCE_PROPLIST_CHANGED], s);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue