Commit 7771a49e authored by Rafaël Carré's avatar Rafaël Carré

directsound: fix crash when no audio card is present on the system

parent e35f2085
......@@ -384,7 +384,8 @@ static void Stop( audio_output_t *p_aout )
IDirectSoundNotify_Release(p_sys->p_notify );
p_sys->p_notify = NULL;
IDirectSoundBuffer_Stop( p_sys->p_dsbuffer );
if( p_sys->p_dsbuffer )
IDirectSoundBuffer_Stop( p_sys->p_dsbuffer );
/* release the secondary buffer */
DestroyDSBuffer( p_aout );
......
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