mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -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
|
|
@ -108,7 +108,7 @@ static int source_process_msg_cb(pa_msgobject *o, int code, void *data, int64_t
|
|||
}
|
||||
|
||||
/* Called from main context */
|
||||
static int source_set_state_cb(pa_source *s, pa_source_state_t state, pa_suspend_cause_t suspend_cause) {
|
||||
static int source_set_state_in_main_thread_cb(pa_source *s, pa_source_state_t state, pa_suspend_cause_t suspend_cause) {
|
||||
struct userdata *u;
|
||||
|
||||
pa_source_assert_ref(s);
|
||||
|
|
@ -367,7 +367,7 @@ int pa__init(pa_module*m) {
|
|||
}
|
||||
|
||||
u->source->parent.process_msg = source_process_msg_cb;
|
||||
u->source->set_state = source_set_state_cb;
|
||||
u->source->set_state_in_main_thread = source_set_state_in_main_thread_cb;
|
||||
u->source->update_requested_latency = source_update_requested_latency_cb;
|
||||
|
||||
u->source->userdata = u;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue