[vlc-commits] mux/ogg: fix another variable shadowing
Rémi Denis-Courmont
git at videolan.org
Sat Mar 2 20:30:06 CET 2019
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Mar 2 21:27:53 2019 +0200| [a88b76d0f64570e9b65d41af7d851afef077714e] | committer: Rémi Denis-Courmont
mux/ogg: fix another variable shadowing
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a88b76d0f64570e9b65d41af7d851afef077714e
---
modules/mux/ogg.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/modules/mux/ogg.c b/modules/mux/ogg.c
index 4752cf80af..3baff56e78 100644
--- a/modules/mux/ogg.c
+++ b/modules/mux/ogg.c
@@ -938,7 +938,6 @@ static bool OggCreateHeaders( sout_mux_t *p_mux )
block_t *p_hdr = NULL;
block_t *p_og = NULL;
ogg_packet op;
- ogg_stream_t *p_stream;
sout_mux_sys_t *p_sys = p_mux->p_sys;
if( sout_AccessOutControl( p_mux->p_access,
@@ -959,8 +958,8 @@ static bool OggCreateHeaders( sout_mux_t *p_mux )
{
for ( int i=0; i< p_mux->i_nb_inputs; i++ )
{
- p_stream = (ogg_stream_t*) p_mux->pp_inputs[i]->p_sys;
- if ( p_stream->p_oggds_header )
+ ogg_stream_t *p_stream = p_mux->pp_inputs[i]->p_sys;
+ if( p_stream->p_oggds_header )
{
/* We don't want skeleton for OggDS */
p_sys->skeleton.b_create = false;
@@ -998,7 +997,7 @@ static bool OggCreateHeaders( sout_mux_t *p_mux )
for( int i = 0; i < p_mux->i_nb_inputs; i++ )
{
sout_input_t *p_input = p_mux->pp_inputs[i];
- p_stream = (ogg_stream_t*)p_input->p_sys;
+ ogg_stream_t *p_stream = p_input->p_sys;
bool video = ( p_stream->fmt.i_codec == VLC_CODEC_THEORA ||
p_stream->fmt.i_codec == VLC_CODEC_DIRAC ||
@@ -1117,7 +1116,7 @@ static bool OggCreateHeaders( sout_mux_t *p_mux )
for( int i = 0; i < p_mux->i_nb_inputs; i++ )
{
sout_input_t *p_input = p_mux->pp_inputs[i];
- ogg_stream_t *p_stream = (ogg_stream_t*)p_input->p_sys;
+ ogg_stream_t *p_stream = p_input->p_sys;
if ( p_stream->skeleton.b_fisbone_done ) continue;
OggGetSkeletonFisbone( &op.packet, &op.bytes, p_input, p_mux );
if ( op.packet == NULL ) return false;
More information about the vlc-commits
mailing list