virtual-source: Don't process the rewind during requesting it
authorTanu Kaskinen <tanuk@iki.fi>
Sat, 4 Jan 2020 09:39:08 +0000 (11:39 +0200)
committerTanu Kaskinen <tanuk@iki.fi>
Sat, 4 Jan 2020 09:54:36 +0000 (11:54 +0200)
commita71136be527ad07e6305a562e6a22e33de8aab01
treee92462a3df2dd9e3dae19f92169825c452a55016
parentbcc2162fb4686cc3a7383847e4d2cc166c88e442
virtual-source: Don't process the rewind during requesting it

The request_rewind() callback of the uplink sink called
pa_sink_process_rewind(), which is not allowed. Things are supposed to
happen so that first a rewind is requested, and then during the next
rtpoll loop the sink will process the request. Calling
pa_sink_process_rewind() during the request phase caused a crash.

Having a request_rewind() callback is completely unnecessary, because
it's only useful for forwarding the request to a downstream sink. In
this case there is no downstream sink.

I also set max_rewind to 0, because the sink doesn't support rewinding.

Fixes: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/775
src/modules/module-virtual-source.c