From eab1cb8df952bc302d14efd1640d96f8bbdb148a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 26 Jun 2008 02:56:00 +0200 Subject: make sure to call process_rewind() under all circumstances before we do the next loop iteration --- src/modules/module-tunnel.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/modules/module-tunnel.c') diff --git a/src/modules/module-tunnel.c b/src/modules/module-tunnel.c index 86f30817..1890646f 100644 --- a/src/modules/module-tunnel.c +++ b/src/modules/module-tunnel.c @@ -605,6 +605,12 @@ static void thread_func(void *userdata) { for (;;) { int ret; +#ifdef TUNNEL_SINK + if (PA_SINK_IS_OPENED(u->sink->thread_info.state)) + if (u->sink->thread_info.rewind_requested) + pa_sink_process_rewind(u->sink, 0); +#endif + if ((ret = pa_rtpoll_run(u->rtpoll, TRUE)) < 0) goto fail; -- cgit