[vlc-devel] commit: DirectSound: Cosmetics (Jean-Baptiste Kempf )

git version control git at videolan.org
Tue Dec 29 16:07:24 CET 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Dec 29 14:34:13 2009 +0100| [0c2e5091bf968370d12f011dbec775d13f9b28ff] | committer: Jean-Baptiste Kempf 

DirectSound: Cosmetics

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/audio_output/directx.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/modules/audio_output/directx.c b/modules/audio_output/directx.c
index 6c02383..3b3c0ac 100644
--- a/modules/audio_output/directx.c
+++ b/modules/audio_output/directx.c
@@ -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;
 }
 




More information about the vlc-devel mailing list