projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0e5cd1
)
handle rewind requests
author
Lennart Poettering
<lennart@poettering.net>
Fri, 27 Jun 2008 19:57:54 +0000
(21:57 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 27 Jun 2008 19:57:54 +0000
(21:57 +0200)
src/modules/module-oss.c
patch
|
blob
|
history
diff --git
a/src/modules/module-oss.c
b/src/modules/module-oss.c
index
76b13ec
..
15b1e95
100644
(file)
--- 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)) {