Commit 0c667814 authored by RODRIGUEZ Christophe's avatar RODRIGUEZ Christophe Committed by Georg Chini
Browse files

raop: Fix rewinding handling : process just after request received

parent 37babc6d
......@@ -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) */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment