Commit dd10370f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix invalid syntax (aout_BufferFree is not an expansion-safe macro)

parent 3c552e9b
......@@ -744,12 +744,14 @@ static void WaveOutThread( notification_thread_t *p_notif )
if( (p_waveheader[i].dwFlags & WHDR_DONE) &&
p_waveheader[i].dwUser )
{
aout_buffer_t *p_buffer =
(aout_buffer_t *)(p_waveheader[i].dwUser);
/* Unprepare and free the buffers which has just been played */
waveOutUnprepareHeader( p_sys->h_waveout, &p_waveheader[i],
sizeof(WAVEHDR) );
if( p_waveheader[i].dwUser != 1 )
aout_BufferFree( (aout_buffer_t *)p_waveheader[i].dwUser );
aout_BufferFree( p_buffer );
p_waveheader[i].dwUser = 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment