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

DirectSound: do not disable thread cancellation

The thread is never cancelled anyway.
parent 9eb9a10e
...@@ -992,7 +992,6 @@ static void* DirectSoundThread( void *data ) ...@@ -992,7 +992,6 @@ static void* DirectSoundThread( void *data )
audio_output_t *p_aout = (audio_output_t *)data; audio_output_t *p_aout = (audio_output_t *)data;
notification_thread_t *p_notif = &p_aout->sys->notif; notification_thread_t *p_notif = &p_aout->sys->notif;
mtime_t last_time; mtime_t last_time;
int canc = vlc_savecancel ();
msg_Dbg( p_aout, "DirectSoundThread ready" ); msg_Dbg( p_aout, "DirectSoundThread ready" );
...@@ -1082,7 +1081,6 @@ static void* DirectSoundThread( void *data ) ...@@ -1082,7 +1081,6 @@ static void* DirectSoundThread( void *data )
/* make sure the buffer isn't playing */ /* make sure the buffer isn't playing */
IDirectSoundBuffer_Stop( p_aout->sys->p_dsbuffer ); IDirectSoundBuffer_Stop( p_aout->sys->p_dsbuffer );
vlc_restorecancel (canc);
msg_Dbg( p_aout, "DirectSoundThread exiting" ); msg_Dbg( p_aout, "DirectSoundThread exiting" );
return NULL; return NULL;
} }
......
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