mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-18 08:56:40 -05:00
handle rewind requests
This commit is contained in:
parent
913bbd4489
commit
f0e5cd1613
1 changed files with 4 additions and 0 deletions
|
|
@ -286,6 +286,10 @@ static void thread_func(void *userdata) {
|
||||||
for (;;) {
|
for (;;) {
|
||||||
int ret;
|
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 no outputs are connected, render some data and drop it immediately. */
|
/* If no outputs are connected, render some data and drop it immediately. */
|
||||||
if (PA_SINK_IS_OPENED(u->sink->thread_info.state) && !u->thread_info.active_outputs) {
|
if (PA_SINK_IS_OPENED(u->sink->thread_info.state) && !u->thread_info.active_outputs) {
|
||||||
pa_usec_t now;
|
pa_usec_t now;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue