]> git.sesse.net Git - vlc/blobdiff - src/audio_output/dec.c
Interaction: avoid thread if there is no provider
[vlc] / src / audio_output / dec.c
index 70af428090af1c0fbc034e197ec45385b6e4bfd6..a3fe900e808e786f1f469ea060d1c134eb006269 100644 (file)
@@ -85,10 +85,9 @@ static aout_input_t * DecNew( vlc_object_t * p_this, aout_instance_t * p_aout,
         goto error;
     }
 
-    p_input = malloc(sizeof(aout_input_t));
-    if( p_input == NULL )
+    p_input = calloc( 1, sizeof(aout_input_t));
+    if( !p_input )
         goto error;
-    memset( p_input, 0, sizeof(aout_input_t) );
 
     vlc_mutex_init( &p_input->lock );