mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
handle rewind requests
This commit is contained in:
parent
f0e5cd1613
commit
89620d3f00
1 changed files with 4 additions and 0 deletions
|
|
@ -876,6 +876,10 @@ static void thread_func(void *userdata) {
|
|||
|
||||
/* pa_log("loop"); */
|
||||
|
||||
if (PA_SINK_IS_OPENED(u->sink->thread_info.state))
|
||||
if (u->sink->thread_info.rewind_requested)
|
||||
pa_sink_process_rewind(u->sink, 0);
|
||||
|
||||
/* Render some data and write it to the dsp */
|
||||
|
||||
if (u->sink && PA_SINK_IS_OPENED(u->sink->thread_info.state) && ((revents & POLLOUT) || u->use_mmap || u->use_getospace)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue