<html><head></head><body>Looks like unused variable?<br><br><div class="gmail_quote">Le 13 mars 2019 16:55:49 GMT+08: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">WaveOutFlush( p_aout, true ) is always called from this function.<hr> modules/audio_output/waveout.c | 21 ---------------------<br> 1 file changed, 21 deletions(-)<br><br>diff --git a/modules/audio_output/waveout.c b/modules/audio_output/waveout.c<br>index b71fe762bb..b9be127bb6 100644<br>--- a/modules/audio_output/waveout.c<br>+++ b/modules/audio_output/waveout.c<br>@@ -391,27 +391,6 @@ static void Stop( audio_output_t *p_aout )<br> <br> /* Before calling waveOutClose we must reset the device */<br> MMRESULT result = waveOutReset( p_sys->h_waveout );<br>- if(result != MMSYSERR_NOERROR)<br>- {<br>- msg_Err( p_aout, "waveOutReset failed 0x%x", result );<br>- /*<br>- now we must wait, that all buffers are played<br>- because cancel doesn't work in this case...<br>- */<br>- if(result == MMSYSERR_NOTSUPPORTED)<br>- {<br>- /*<br>- clear currently played (done) buffers,<br>- if returnvalue > 0 (means some buffer still playing)<br>- wait for the driver event callback that one buffer<br>- is finished with playing, and check again<br>- the timeout of 5000ms is just, an emergency exit<br>- of this loop, to avoid deadlock in case of other<br>- (currently not known bugs, problems, errors cases?)<br>- */<br>- WaveOutFlush( p_aout, true );<br>- }<br>- }<br> <br> /* wait for the frames to be queued in cleaning list */<br> WaveOutFlush( p_aout, true );</pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>