<html><head></head><body>We never really specified whether or when a block could be empty, so you can't really say it's a bug in the source rather than the sink.<br><br><div class="gmail_quote">Le 12 février 2019 11:02:31 GMT+02: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">Other possible fix: put an assert and fix the filters that send empty blocks.<hr> src/audio_output/dec.c | 5 +++++<br> 1 file changed, 5 insertions(+)<br><br>diff --git a/src/audio_output/dec.c b/src/audio_output/dec.c<br>index b913ac18a0..e5aff4f691 100644<br>--- a/src/audio_output/dec.c<br>+++ b/src/audio_output/dec.c<br>@@ -370,6 +370,11 @@ int aout_DecPlay(audio_output_t *aout, block_t *block)<br>     block = aout_FiltersPlay(owner->filters, block, owner->sync.rate);<br>     if (block == NULL)<br>         goto lost;<br>+    else if (unlikely(block->i_buffer == 0))<br>+    {<br>+        block_Release(block);<br>+        return ret;<br>+    }<br> <br>     /* Software volume */<br>     aout_volume_Amplify (owner->volume, block);</pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>