mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-22 08:56:52 -05: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;
|
size_t index;
|
||||||
int ret;
|
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). */
|
/* Polling (audio data + control socket + timing socket). */
|
||||||
if ((ret = pa_rtpoll_run(u->rtpoll)) < 0)
|
if ((ret = pa_rtpoll_run(u->rtpoll)) < 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
else if (ret == 0)
|
else if (ret == 0)
|
||||||
goto finish;
|
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) {
|
if (u->rtpoll_item) {
|
||||||
pollfd = pa_rtpoll_item_get_pollfd(u->rtpoll_item, &nbfds);
|
pollfd = pa_rtpoll_item_get_pollfd(u->rtpoll_item, &nbfds);
|
||||||
/* If !oob: streaming driven by pollds (POLLOUT) */
|
/* If !oob: streaming driven by pollds (POLLOUT) */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue