[vlc-commits] DirectSound: remove stray event handle

Rémi Denis-Courmont git at videolan.org
Tue Feb 4 23:06:30 CET 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Feb  4 22:56:32 2014 +0200| [dd3e234c32f607d35a05108122923b06cd40f136] | committer: Rémi Denis-Courmont

DirectSound: remove stray event handle

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dd3e234c32f607d35a05108122923b06cd40f136
---

 modules/audio_output/directsound.c |   11 -----------
 1 file changed, 11 deletions(-)

diff --git a/modules/audio_output/directsound.c b/modules/audio_output/directsound.c
index 540c58c..27260b0 100644
--- a/modules/audio_output/directsound.c
+++ b/modules/audio_output/directsound.c
@@ -102,7 +102,6 @@ struct aout_sys_t
                                        * secondary buffers into the primary) */
 
     LPDIRECTSOUNDNOTIFY p_notify;
-    HANDLE hnotify_evt;
     struct
     {
         float            volume;
@@ -888,15 +887,6 @@ static int Open(vlc_object_t *obj)
     aout_VolumeReport(aout, sys->volume.volume );
     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) */
     char **ids, **names;
     int count = ReloadDirectXDevices(obj, NULL, &ids, &names);
@@ -925,7 +915,6 @@ static void Close(vlc_object_t *obj)
     aout_sys_t *sys = aout->sys;
 
     var_Destroy(aout, "directx-audio-device");
-    CloseHandle(sys->hnotify_evt);
     FreeLibrary(sys->hdsound_dll); /* free DSOUND.DLL */
     free(sys);
 }



More information about the vlc-commits mailing list