]> git.sesse.net Git - vlc/commitdiff
DirectSound: Cosmetics
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 29 Dec 2009 13:34:13 +0000 (14:34 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 29 Dec 2009 15:07:09 +0000 (16:07 +0100)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/audio_output/directx.c

index 6c02383b60fcd05ff22b068ff0a6e21f66d23a49..3b3c0ac8f6f982977402a530973bfd7df31c4695 100644 (file)
@@ -159,7 +159,7 @@ static int OpenAudio( vlc_object_t *p_this )
 
     const char * const * ppsz_compare = speaker_list;
 
-    msg_Dbg( p_aout, "OpenAudio" );
+    msg_Dbg( p_aout, "Opening DirectSound Audio Output" );
 
    /* Allocate structure */
     p_aout->output.p_sys = malloc( sizeof( aout_sys_t ) );
@@ -1121,11 +1121,10 @@ static void* DirectSoundThread( vlc_object_t *p_this )
 static int CALLBACK CallBackConfigNBEnum( LPGUID p_guid, LPCSTR psz_desc,
                                              LPCSTR psz_mod, LPVOID p_nb )
 {
-    VLC_UNUSED( psz_mod );
-    VLC_UNUSED( psz_desc );
-    VLC_UNUSED( p_guid );
+    VLC_UNUSED( psz_mod ); VLC_UNUSED( psz_desc ); VLC_UNUSED( p_guid );
+
     int * a = (int *)p_nb;
-    *a = *a +1;
+    (*a)++;
     return 1;
 }