mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-01 22:58:47 -04:00
raop: Fix rewinding handling : process just after request received
This commit is contained in:
parent
37babc6d1a
commit
0c6678146a
1 changed files with 5 additions and 5 deletions
|
|
@ -358,17 +358,17 @@ static void thread_func(void *userdata) {
|
|||
size_t index;
|
||||
int ret;
|
||||
|
||||
if (PA_SINK_IS_OPENED(u->sink->thread_info.state)) {
|
||||
if (u->sink->thread_info.rewind_requested)
|
||||
pa_sink_process_rewind(u->sink, 0);
|
||||
}
|
||||
|
||||
/* Polling (audio data + control socket + timing socket). */
|
||||
if ((ret = pa_rtpoll_run(u->rtpoll)) < 0)
|
||||
goto fail;
|
||||
else if (ret == 0)
|
||||
goto finish;
|
||||
|
||||
if (PA_SINK_IS_OPENED(u->sink->thread_info.state)) {
|
||||
if (u->sink->thread_info.rewind_requested)
|
||||
pa_sink_process_rewind(u->sink, 0);
|
||||
}
|
||||
|
||||
if (u->rtpoll_item) {
|
||||
pollfd = pa_rtpoll_item_get_pollfd(u->rtpoll_item, &nbfds);
|
||||
/* If !oob: streaming driven by pollds (POLLOUT) */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue