summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-06-27 21:57:54 +0200
committerLennart Poettering <lennart@poettering.net>2008-06-27 21:57:54 +0200
commit89620d3f00c56bf3e0da54d3893751248a4a6568 (patch)
treec6b75915320370f6de5222cc7e8b4a6bf560db5e
parentf0e5cd1613ca5dce13e475dade522830743b0919 (diff)
handle rewind requests
-rw-r--r--src/modules/module-oss.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/module-oss.c b/src/modules/module-oss.c
index 76b13ecc..15b1e956 100644
--- a/src/modules/module-oss.c
+++ b/src/modules/module-oss.c
@@ -876,6 +876,10 @@ static void thread_func(void *userdata) {
/* 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 */
if (u->sink && PA_SINK_IS_OPENED(u->sink->thread_info.state) && ((revents & POLLOUT) || u->use_mmap || u->use_getospace)) {