mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
call the right function in the right context
This commit is contained in:
parent
d9f8b6a503
commit
d1362b56b7
2 changed files with 2 additions and 2 deletions
|
|
@ -322,7 +322,7 @@ static void sink_input_attach_cb(pa_sink_input *i) {
|
||||||
pa_sink_set_rtpoll(u->sink, i->sink->rtpoll);
|
pa_sink_set_rtpoll(u->sink, i->sink->rtpoll);
|
||||||
pa_sink_attach_within_thread(u->sink);
|
pa_sink_attach_within_thread(u->sink);
|
||||||
|
|
||||||
pa_sink_set_latency_range(u->sink, u->master->thread_info.min_latency, u->master->thread_info.max_latency);
|
pa_sink_update_latency_range(u->sink, u->master->thread_info.min_latency, u->master->thread_info.max_latency);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Called from main context */
|
/* Called from main context */
|
||||||
|
|
|
||||||
|
|
@ -240,7 +240,7 @@ static void sink_input_attach_cb(pa_sink_input *i) {
|
||||||
pa_sink_set_rtpoll(u->sink, i->sink->rtpoll);
|
pa_sink_set_rtpoll(u->sink, i->sink->rtpoll);
|
||||||
pa_sink_attach_within_thread(u->sink);
|
pa_sink_attach_within_thread(u->sink);
|
||||||
|
|
||||||
pa_sink_set_latency_range(u->sink, u->master->thread_info.min_latency, u->master->thread_info.max_latency);
|
pa_sink_update_latency_range(u->sink, u->master->thread_info.min_latency, u->master->thread_info.max_latency);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Called from main context */
|
/* Called from main context */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue