mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
sink, source: rename set_state() to set_state_in_main_thread()
There will be a new callback named set_state_in_io_thread(). It seems like a good idea to have a similar name for the main thread variant.
This commit is contained in:
parent
f6fe411b32
commit
0fad369ceb
17 changed files with 56 additions and 54 deletions
|
|
@ -353,7 +353,7 @@ static int source_process_msg(pa_msgobject *o, int code, void *data, int64_t off
|
|||
return pa_source_process_msg(o, code, data, offset, chunk);;
|
||||
}
|
||||
|
||||
static int ca_sink_set_state(pa_sink *s, pa_sink_state_t state, pa_suspend_cause_t suspend_cause) {
|
||||
static int ca_sink_set_state_in_main_thread(pa_sink *s, pa_sink_state_t state, pa_suspend_cause_t suspend_cause) {
|
||||
coreaudio_sink *sink = s->userdata;
|
||||
|
||||
switch (state) {
|
||||
|
|
@ -498,7 +498,7 @@ static int ca_device_create_sink(pa_module *m, AudioBuffer *buf, int channel_idx
|
|||
|
||||
sink->parent.process_msg = sink_process_msg;
|
||||
sink->userdata = ca_sink;
|
||||
sink->set_state = ca_sink_set_state;
|
||||
sink->set_state_in_main_thread = ca_sink_set_state_in_main_thread;
|
||||
|
||||
pa_sink_set_asyncmsgq(sink, u->thread_mq.inq);
|
||||
pa_sink_set_rtpoll(sink, u->rtpoll);
|
||||
|
|
@ -511,7 +511,7 @@ static int ca_device_create_sink(pa_module *m, AudioBuffer *buf, int channel_idx
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int ca_source_set_state(pa_source *s, pa_source_state_t state, pa_suspend_cause_t suspend_cause) {
|
||||
static int ca_source_set_state_in_main_thread(pa_source *s, pa_source_state_t state, pa_suspend_cause_t suspend_cause) {
|
||||
coreaudio_source *source = s->userdata;
|
||||
|
||||
switch (state) {
|
||||
|
|
@ -632,7 +632,7 @@ static int ca_device_create_source(pa_module *m, AudioBuffer *buf, int channel_i
|
|||
|
||||
source->parent.process_msg = source_process_msg;
|
||||
source->userdata = ca_source;
|
||||
source->set_state = ca_source_set_state;
|
||||
source->set_state_in_main_thread = ca_source_set_state_in_main_thread;
|
||||
|
||||
pa_source_set_asyncmsgq(source, u->thread_mq.inq);
|
||||
pa_source_set_rtpoll(source, u->rtpoll);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue