<html><head></head><body>Probably OK<br><br><div class="gmail_quote">Le 12 juillet 2019 14:14:12 GMT+03:00, Thomas Guillem <thomas@gllm.fr> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail"><hr> modules/audio_output/pulse.c | 15 +++++++++++++++<br> 1 file changed, 15 insertions(+)<br><br>diff --git a/modules/audio_output/pulse.c b/modules/audio_output/pulse.c<br>index 1091affcac..fba8fd6840 100644<br>--- a/modules/audio_output/pulse.c<br>+++ b/modules/audio_output/pulse.c<br>@@ -555,6 +555,21 @@ static void Drain(audio_output_t *aout)<br> pa_stream *s = sys->stream;<br> <br> pa_threaded_mainloop_lock(sys->mainloop);<br>+<br>+ if (unlikely(pa_stream_is_corked(s) > 0))<br>+ {<br>+ /* Drain while the stream is corked. It happens with very small input<br>+ * when the stream is drained while the start is still being deferred.<br>+ * In that case, we need start the stream before we actually drain it.<br>+ * */<br>+ if (sys->trigger != NULL)<br>+ {<br>+ vlc_pa_rttime_free(sys->mainloop, sys->trigger);<br>+ sys->trigger = NULL;<br>+ }<br>+ stream_start_now(s, aout);<br>+ }<br>+<br> pa_operation *op = pa_stream_drain(s, NULL, NULL);<br> if (op != NULL)<br> pa_operation_unref(op);</pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>