[vlc-commits] Remove dead initializations

Rémi Duraffort git at videolan.org
Sun Dec 15 22:03:32 CET 2013


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Dec 15 18:49:35 2013 +0100| [5a98d360857b82aca1dc6985a5003cb2ff3b3ecb] | committer: Rémi Duraffort

Remove dead initializations

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

 modules/codec/dirac.c                  |    2 +-
 modules/codec/faad.c                   |    2 +-
 modules/codec/schroedinger.c           |    2 +-
 modules/services_discovery/mediadirs.c |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/codec/dirac.c b/modules/codec/dirac.c
index c3aa420..36d8262 100644
--- a/modules/codec/dirac.c
+++ b/modules/codec/dirac.c
@@ -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;
diff --git a/modules/codec/faad.c b/modules/codec/faad.c
index 6aba913..44919f5 100644
--- a/modules/codec/faad.c
+++ b/modules/codec/faad.c
@@ -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 )
diff --git a/modules/codec/schroedinger.c b/modules/codec/schroedinger.c
index 46ef801..e949e1d 100644
--- a/modules/codec/schroedinger.c
+++ b/modules/codec/schroedinger.c
@@ -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;
diff --git a/modules/services_discovery/mediadirs.c b/modules/services_discovery/mediadirs.c
index 030fcf5..0e081e9 100644
--- a/modules/services_discovery/mediadirs.c
+++ b/modules/services_discovery/mediadirs.c
@@ -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 )



More information about the vlc-commits mailing list