mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-01 22:58:47 -04:00
shortcut pa_sink_process_rewind() when no rewind is happenning and none was requested
This commit is contained in:
parent
5fc11a0724
commit
a9e9ab32a2
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue