diff options
author | Tanu Kaskinen <tanuk@iki.fi> | 2016-03-11 12:02:22 +0200 |
---|---|---|
committer | Tanu Kaskinen <tanuk@iki.fi> | 2016-04-25 13:50:47 +0300 |
commit | 3e7e901ba0a8e368b3ac99febebdd3918495e3c6 (patch) | |
tree | 044e180333a247ac9c480a8a1b3d8764145378d3 /doc | |
parent | 085cced42ce0901a2f677fc2f630801b0f4edf80 (diff) | |
download | pulseaudio-3e7e901ba0a8e368b3ac99febebdd3918495e3c6.tar.gz |
sink-input, source-output: rework property setting
pa_sink_input_update_proplist() is inconvenient in many cases, because
it requires allocating a new proplist, even if the goal is to just set
one property. pa_sink_input_update_properties also can't properly log
property changes, because it has to assume that all values are
arbitrary binary data.
This patch adds pa_sink_input_set_property() for setting a string
value for a single property, and pa_sink_input_set_property_arbitrary()
for setting a binary value for a single property.
pa_sink_input_update_properties() is reimplemented as a wrapper around
pa_sink_input_set_property_arbitrary() to centralize logging and
sending change notifications.
(The above mentions only sink input functions for brevity, but the
same changes are implemented for source outputs too.)
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions