From: Lennart Poettering Date: Fri, 27 Jun 2008 19:57:44 +0000 (+0200) Subject: handle rewind requests X-Git-Tag: submit/2.0-panda/20130828.192557~2800 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f0e5cd1613ca5dce13e475dade522830743b0919;p=profile%2Fivi%2Fpulseaudio-panda.git handle rewind requests --- diff --git a/src/modules/module-combine.c b/src/modules/module-combine.c index 7d8e140..0a0b8d2 100644 --- a/src/modules/module-combine.c +++ b/src/modules/module-combine.c @@ -286,6 +286,10 @@ static void thread_func(void *userdata) { for (;;) { 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); + /* If no outputs are connected, render some data and drop it immediately. */ if (PA_SINK_IS_OPENED(u->sink->thread_info.state) && !u->thread_info.active_outputs) { pa_usec_t now;