mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
sink-input, source-output: remove set_name()
pa_sink_input_set_property() does everything pa_sink_input_set_name() does.
This commit is contained in:
parent
3e7e901ba0
commit
16b4624961
5 changed files with 2 additions and 56 deletions
|
|
@ -1574,31 +1574,6 @@ int pa_sink_input_set_rate(pa_sink_input *i, uint32_t rate) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* Called from main context */
|
||||
void pa_sink_input_set_name(pa_sink_input *i, const char *name) {
|
||||
const char *old;
|
||||
pa_sink_input_assert_ref(i);
|
||||
pa_assert_ctl_context();
|
||||
|
||||
if (!name && !pa_proplist_contains(i->proplist, PA_PROP_MEDIA_NAME))
|
||||
return;
|
||||
|
||||
old = pa_proplist_gets(i->proplist, PA_PROP_MEDIA_NAME);
|
||||
|
||||
if (old && name && pa_streq(old, name))
|
||||
return;
|
||||
|
||||
if (name)
|
||||
pa_proplist_sets(i->proplist, PA_PROP_MEDIA_NAME, name);
|
||||
else
|
||||
pa_proplist_unset(i->proplist, PA_PROP_MEDIA_NAME);
|
||||
|
||||
if (PA_SINK_INPUT_IS_LINKED(i->state)) {
|
||||
pa_hook_fire(&i->core->hooks[PA_CORE_HOOK_SINK_INPUT_PROPLIST_CHANGED], i);
|
||||
pa_subscription_post(i->core, PA_SUBSCRIPTION_EVENT_SINK_INPUT|PA_SUBSCRIPTION_EVENT_CHANGE, i->index);
|
||||
}
|
||||
}
|
||||
|
||||
/* Called from main context */
|
||||
pa_resample_method_t pa_sink_input_get_resample_method(pa_sink_input *i) {
|
||||
pa_sink_input_assert_ref(i);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue