[vlc-devel] commit: Remove nestead assignement. ( Rémi Duraffort )
git version control
git at videolan.org
Wed Jul 15 22:17:54 CEST 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Jul 15 18:35:34 2009 +0200| [25def74f0123c298f3e47f25096eaba110be28d6] | committer: Rémi Duraffort
Remove nestead assignement.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=25def74f0123c298f3e47f25096eaba110be28d6
---
modules/access_output/http.c | 2 +-
modules/codec/png.c | 8 +++-----
2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/modules/access_output/http.c b/modules/access_output/http.c
index d250431..fde86a1 100644
--- a/modules/access_output/http.c
+++ b/modules/access_output/http.c
@@ -179,7 +179,7 @@ static int Open( vlc_object_t *p_this )
config_ChainParse( p_access, SOUT_CFG_PREFIX, ppsz_sout_options, p_access->p_cfg );
/* p_access->psz_path = "hostname:port/filename" */
- psz_bind_addr = psz_parser = strdup( p_access->psz_path );
+ psz_bind_addr = strdup( p_access->psz_path );
i_bind_port = 0;
diff --git a/modules/codec/png.c b/modules/codec/png.c
index 3d8a6ff..61c9226 100644
--- a/modules/codec/png.c
+++ b/modules/codec/png.c
@@ -67,7 +67,6 @@ vlc_module_end ()
static int OpenDecoder( vlc_object_t *p_this )
{
decoder_t *p_dec = (decoder_t*)p_this;
- decoder_sys_t *p_sys;
if( p_dec->fmt_in.i_codec != VLC_CODEC_PNG &&
p_dec->fmt_in.i_codec != VLC_FOURCC('M','P','N','G') )
@@ -76,8 +75,7 @@ static int OpenDecoder( vlc_object_t *p_this )
}
/* Allocate the memory needed to store the decoder's structure */
- if( ( p_dec->p_sys = p_sys =
- (decoder_sys_t *)malloc(sizeof(decoder_sys_t)) ) == NULL )
+ if( ( p_dec->p_sys = malloc(sizeof(decoder_sys_t)) ) == NULL )
return VLC_ENOMEM;
/* Set output properties */
@@ -150,7 +148,7 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
block_Release( p_block ); *pp_block = NULL;
return NULL;
}
-
+
p_info = png_create_info_struct( p_png );
if( p_info == NULL )
{
@@ -166,7 +164,7 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
block_Release( p_block ); *pp_block = NULL;
return NULL;
}
-
+
/* libpng longjmp's there in case of error */
if( setjmp( png_jmpbuf( p_png ) ) )
goto error;
More information about the vlc-devel
mailing list