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:
5fc11a0
)
shortcut pa_sink_process_rewind() when no rewind is happenning and none was requested
author
Lennart Poettering
<lennart@poettering.net>
Sun, 1 Feb 2009 23:45:54 +0000
(
00:45
+0100)
committer
Lennart Poettering
<lennart@poettering.net>
Sun, 1 Feb 2009 23:45:54 +0000
(
00:45
+0100)
src/pulsecore/sink.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/sink.c
b/src/pulsecore/sink.c
index
4c822b3
..
b149bb6
100644
(file)
--- a/
src/pulsecore/sink.c
+++ b/
src/pulsecore/sink.c
@@
-544,6
+544,11
@@
void pa_sink_process_rewind(pa_sink *s, size_t nbytes) {
pa_sink_assert_ref(s);
pa_assert(PA_SINK_IS_LINKED(s->thread_info.state));
+ /* If nobody requested this and this is actually no real rewind
+ * then we can short cut this */
+ if (!s->thread_info.rewind_requested && nbytes <= 0)
+ return;
+
s->thread_info.rewind_nbytes = 0;
s->thread_info.rewind_requested = FALSE;