[vlc-devel] commit: remove useless msg_Err() , use memset() for simplicity ( Rafaël Carré )

git version control git at videolan.org
Tue Mar 11 09:05:08 CET 2008


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Tue Mar 11 01:51:20 2008 +0100| [c7caf0005dcab6d0f4bb007bff53f84a5977de44]

remove useless msg_Err() , use memset() for simplicity

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

 modules/audio_output/pulse.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/modules/audio_output/pulse.c b/modules/audio_output/pulse.c
index 5043c6d..8d08ec7 100644
--- a/modules/audio_output/pulse.c
+++ b/modules/audio_output/pulse.c
@@ -115,14 +115,8 @@ static int Open ( vlc_object_t *p_this )
     /* Allocate structures */
     p_aout->output.p_sys = p_sys = malloc( sizeof( aout_sys_t ) );
     if( p_sys == NULL )
-    {
-        msg_Err( p_aout, "out of memory" );
         return VLC_ENOMEM;
-    }
-    p_sys->started = 0;
-    p_sys->stream = NULL;
-    p_sys->mainloop = NULL;
-    p_sys->context = NULL;
+    memset( p_sys, 0, sizeof( aout_sys_t ) );
 
     PULSE_DEBUG( "Pulse start initialization");
 




More information about the vlc-devel mailing list