mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-30 11:08:50 -05:00
add new dont_rewind_render flag to allow quick starts of newly created streams
This commit is contained in:
parent
06de6393d1
commit
75119e91cd
12 changed files with 32 additions and 22 deletions
|
|
@ -1240,7 +1240,7 @@ static void handle_seek(playback_stream *s, int64_t indexw) {
|
|||
pa_log_debug("Requesting rewind due to end of underrun.");
|
||||
pa_sink_input_request_rewind(s->sink_input,
|
||||
(size_t) (s->sink_input->thread_info.underrun_for == (size_t) -1 ? 0 : s->sink_input->thread_info.underrun_for),
|
||||
FALSE, TRUE);
|
||||
FALSE, TRUE, FALSE);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
|
@ -1253,7 +1253,7 @@ static void handle_seek(playback_stream *s, int64_t indexw) {
|
|||
* let's have it usk us again */
|
||||
|
||||
pa_log_debug("Requesting rewind due to rewrite.");
|
||||
pa_sink_input_request_rewind(s->sink_input, (size_t) (indexr - indexw), TRUE, FALSE);
|
||||
pa_sink_input_request_rewind(s->sink_input, (size_t) (indexr - indexw), TRUE, FALSE, FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue