]> code.delx.au - pulseaudio/blobdiff - src/modules/module-tunnel.c
make sure to call process_rewind() under all circumstances before we do the next...
[pulseaudio] / src / modules / module-tunnel.c
index 86f30817d82d9080b1d02cc19fbed699b93d7264..1890646f17418eeade93a90dbe036a9e3a9ac95c 100644 (file)
@@ -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;