handle rewind requests

This commit is contained in:
Lennart Poettering 2008-06-27 21:57:54 +02:00
parent f0e5cd1613
commit 89620d3f00

View file

@ -876,6 +876,10 @@ static void thread_func(void *userdata) {
/* pa_log("loop"); */ /* 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 */ /* 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)) { if (u->sink && PA_SINK_IS_OPENED(u->sink->thread_info.state) && ((revents & POLLOUT) || u->use_mmap || u->use_getospace)) {