mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
fix up latency before calling into stream code, to make sure we don't ask for too much data to early
This commit is contained in:
parent
63505bee07
commit
450fe170a5
4 changed files with 16 additions and 13 deletions
|
|
@ -670,6 +670,9 @@ int pa_source_process_msg(pa_msgobject *object, int code, void *userdata, int64_
|
|||
|
||||
pa_source_output_set_state_within_thread(o, o->state);
|
||||
|
||||
if (o->thread_info.requested_source_latency != (pa_usec_t) -1)
|
||||
pa_source_output_set_requested_latency_within_thread(o, o->thread_info.requested_source_latency);
|
||||
|
||||
pa_source_output_update_max_rewind(o, s->thread_info.max_rewind);
|
||||
|
||||
/* We don't just invalidate the requested latency here,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue