mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -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
|
|
@ -4486,7 +4486,7 @@ static void command_set_stream_name(pa_pdispatch *pd, uint32_t command, uint32_t
|
|||
CHECK_VALIDITY(c->pstream, s, tag, PA_ERR_NOENTITY);
|
||||
CHECK_VALIDITY(c->pstream, playback_stream_isinstance(s), tag, PA_ERR_NOENTITY);
|
||||
|
||||
pa_sink_input_set_name(s->sink_input, name);
|
||||
pa_sink_input_set_property(s->sink_input, PA_PROP_MEDIA_NAME, name);
|
||||
|
||||
} else {
|
||||
record_stream *s;
|
||||
|
|
@ -4495,7 +4495,7 @@ static void command_set_stream_name(pa_pdispatch *pd, uint32_t command, uint32_t
|
|||
s = pa_idxset_get_by_index(c->record_streams, idx);
|
||||
CHECK_VALIDITY(c->pstream, s, tag, PA_ERR_NOENTITY);
|
||||
|
||||
pa_source_output_set_name(s->source_output, name);
|
||||
pa_source_output_set_property(s->source_output, PA_PROP_MEDIA_NAME, name);
|
||||
}
|
||||
|
||||
pa_pstream_send_simple_ack(c->pstream, tag);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue