Remove dead initializations
authorRémi Duraffort <ivoire@videolan.org>
Sun, 15 Dec 2013 17:49:35 +0000 (18:49 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Sun, 15 Dec 2013 20:57:21 +0000 (21:57 +0100)
modules/codec/dirac.c
modules/codec/faad.c
modules/codec/schroedinger.c
modules/services_discovery/mediadirs.c

index c3aa420..36d8262 100644 (file)
@@ -436,7 +436,7 @@ static mtime_t GetPicturePTS( encoder_t *p_enc, uint32_t u_pnum )
 static int OpenEncoder( vlc_object_t *p_this )
 {
     encoder_t *p_enc = (encoder_t *)p_this;
-    encoder_sys_t *p_sys = p_enc->p_sys;
+    encoder_sys_t *p_sys;
     int i_tmp;
     float f_tmp;
     char *psz_tmp;
index 6aba913..44919f5 100644 (file)
@@ -122,7 +122,7 @@ static const uint32_t pi_channels_guessed[MAX_CHANNEL_POSITIONS] =
 static int Open( vlc_object_t *p_this )
 {
     decoder_t *p_dec = (decoder_t*)p_this;
-    decoder_sys_t *p_sys = p_dec->p_sys;
+    decoder_sys_t *p_sys;
     faacDecConfiguration *cfg;
 
     if( p_dec->fmt_in.i_codec != VLC_CODEC_MP4A )
index 46ef801..e949e1d 100644 (file)
@@ -1060,7 +1060,7 @@ static bool SetEncChromaFormat( encoder_t *p_enc, uint32_t i_codec )
 static int OpenEncoder( vlc_object_t *p_this )
 {
     encoder_t *p_enc = (encoder_t *)p_this;
-    encoder_sys_t *p_sys = p_enc->p_sys;
+    encoder_sys_t *p_sys;
     int i_tmp;
     float f_tmp;
     char *psz_tmp;
index 030fcf5..0e081e9 100644 (file)
@@ -118,7 +118,7 @@ struct services_discovery_sys_t
 static int Open( vlc_object_t *p_this, enum type_e i_type )
 {
     services_discovery_t *p_sd = ( services_discovery_t* )p_this;
-    services_discovery_sys_t *p_sys = p_sd->p_sys;
+    services_discovery_sys_t *p_sys;
 
     p_sd->p_sys = p_sys = calloc( 1, sizeof( *p_sys) );
     if( !p_sys )