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

DirectSound: remove stray event handle

parent db527697
...@@ -102,7 +102,6 @@ struct aout_sys_t ...@@ -102,7 +102,6 @@ struct aout_sys_t
* secondary buffers into the primary) */ * secondary buffers into the primary) */
LPDIRECTSOUNDNOTIFY p_notify; LPDIRECTSOUNDNOTIFY p_notify;
HANDLE hnotify_evt;
struct struct
{ {
float volume; float volume;
...@@ -888,15 +887,6 @@ static int Open(vlc_object_t *obj) ...@@ -888,15 +887,6 @@ static int Open(vlc_object_t *obj)
aout_VolumeReport(aout, sys->volume.volume ); aout_VolumeReport(aout, sys->volume.volume );
MuteSet(aout, var_InheritBool(aout, "mute")); MuteSet(aout, var_InheritBool(aout, "mute"));
sys->hnotify_evt = CreateEvent(NULL, FALSE, TRUE, NULL);
if( !sys->hnotify_evt )
{
msg_Err(aout, "cannot create Event");
FreeLibrary(sys->hdsound_dll);
free(sys);
return VLC_EGENERIC;
}
/* DirectSound does not support hot-plug events (unless with WASAPI) */ /* DirectSound does not support hot-plug events (unless with WASAPI) */
char **ids, **names; char **ids, **names;
int count = ReloadDirectXDevices(obj, NULL, &ids, &names); int count = ReloadDirectXDevices(obj, NULL, &ids, &names);
...@@ -925,7 +915,6 @@ static void Close(vlc_object_t *obj) ...@@ -925,7 +915,6 @@ static void Close(vlc_object_t *obj)
aout_sys_t *sys = aout->sys; aout_sys_t *sys = aout->sys;
var_Destroy(aout, "directx-audio-device"); var_Destroy(aout, "directx-audio-device");
CloseHandle(sys->hnotify_evt);
FreeLibrary(sys->hdsound_dll); /* free DSOUND.DLL */ FreeLibrary(sys->hdsound_dll); /* free DSOUND.DLL */
free(sys); free(sys);
} }
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