mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
use pa_sink_set_latency_range() where applicable
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2458 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
7e5e015cbe
commit
58487ee4e4
2 changed files with 2 additions and 4 deletions
|
|
@ -297,8 +297,7 @@ static void sink_input_attach_cb(pa_sink_input *i) {
|
|||
pa_sink_set_rtpoll(u->sink, i->sink->rtpoll);
|
||||
pa_sink_attach_within_thread(u->sink);
|
||||
|
||||
u->sink->max_latency = u->master->max_latency;
|
||||
u->sink->min_latency = u->master->min_latency;
|
||||
pa_sink_set_latency_range(u->sink, u->master->min_latency, u->master->max_latency);
|
||||
}
|
||||
|
||||
/* Called from main context */
|
||||
|
|
|
|||
|
|
@ -214,8 +214,7 @@ static void sink_input_attach_cb(pa_sink_input *i) {
|
|||
pa_sink_set_rtpoll(u->sink, i->sink->rtpoll);
|
||||
pa_sink_attach_within_thread(u->sink);
|
||||
|
||||
u->sink->max_latency = u->master->max_latency;
|
||||
u->sink->min_latency = u->master->min_latency;
|
||||
pa_sink_set_latency_range(u->sink, u->master->min_latency, u->master->max_latency);
|
||||
}
|
||||
|
||||
/* Called from main context */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue