[vlc-devel] [PATCH 3/5] duplicate: remove write-only array
RĂ©mi Denis-Courmont
remi at remlab.net
Sun Oct 11 15:22:57 CEST 2020
---
modules/stream_out/duplicate.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/modules/stream_out/duplicate.c b/modules/stream_out/duplicate.c
index 128213edc0..7837adbee0 100644
--- a/modules/stream_out/duplicate.c
+++ b/modules/stream_out/duplicate.c
@@ -61,9 +61,6 @@ typedef struct
int i_nb_streams;
sout_stream_t **pp_streams;
- int i_nb_last_streams;
- sout_stream_t **pp_last_streams;
-
int i_nb_select;
char **ppsz_select;
} sout_stream_sys_t;
@@ -123,7 +120,6 @@ static int Open( vlc_object_t *p_this )
return VLC_ENOMEM;
TAB_INIT( p_sys->i_nb_streams, p_sys->pp_streams );
- TAB_INIT( p_sys->i_nb_last_streams, p_sys->pp_last_streams );
TAB_INIT( p_sys->i_nb_select, p_sys->ppsz_select );
for( p_cfg = p_stream->p_cfg; p_cfg != NULL; p_cfg = p_cfg->p_next )
@@ -139,8 +135,6 @@ static int Open( vlc_object_t *p_this )
if( s )
{
TAB_APPEND( p_sys->i_nb_streams, p_sys->pp_streams, s );
- TAB_APPEND( p_sys->i_nb_last_streams, p_sys->pp_last_streams,
- p_last );
TAB_APPEND( p_sys->i_nb_select, p_sys->ppsz_select, NULL );
}
}
@@ -197,7 +191,6 @@ static void Close( vlc_object_t * p_this )
free( p_sys->ppsz_select[i] );
}
free( p_sys->pp_streams );
- free( p_sys->pp_last_streams );
free( p_sys->ppsz_select );
free( p_sys );
--
2.28.0
More information about the vlc-devel
mailing list