diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-06-26 02:56:00 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-06-26 02:56:00 +0200 |
commit | eab1cb8df952bc302d14efd1640d96f8bbdb148a (patch) | |
tree | d3de307ecdaa284308e7d726153ffb6a10f012cc /src/modules/module-jack-sink.c | |
parent | 1e36b57b13d421dab20c436e0ae302acc34fbac9 (diff) |
make sure to call process_rewind() under all circumstances before we do the next loop iteration
Diffstat (limited to 'src/modules/module-jack-sink.c')
-rw-r--r-- | src/modules/module-jack-sink.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/module-jack-sink.c b/src/modules/module-jack-sink.c index c4d47f8e..edc543a8 100644 --- a/src/modules/module-jack-sink.c +++ b/src/modules/module-jack-sink.c @@ -222,6 +222,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 ((ret = pa_rtpoll_run(u->rtpoll, TRUE)) < 0) goto fail; |