[vlc-commits] ogg: remove deadcode

Thomas Guillem git at videolan.org
Thu Feb 1 11:26:18 CET 2018


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Jan 29 16:20:14 2018 +0100| [cbf93800effb78db68369ee8028e2ba157561857] | committer: Thomas Guillem

ogg: remove deadcode

mux->i_nb_inputs is always 0 from the Close callback

(cherry picked from commit 6ab31aa007805d22d91325214bc93e271621447f)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

 modules/mux/ogg.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/modules/mux/ogg.c b/modules/mux/ogg.c
index 26e71ef1cc..1d57c3f46a 100644
--- a/modules/mux/ogg.c
+++ b/modules/mux/ogg.c
@@ -287,13 +287,6 @@ static void Close( vlc_object_t * p_this )
         /* Close the current ogg stream */
         msg_Dbg( p_mux, "writing footers" );
 
-        for(int i = 0; i < p_mux->i_nb_inputs; i++ )
-        {
-            p_stream = (ogg_stream_t *) p_mux->pp_inputs[i]->p_sys;
-            OggCreateStreamFooter( p_mux, p_stream );
-            free( p_stream->skeleton.p_index );
-        }
-
         /* Remove deleted logical streams */
         for(int i = 0; i < p_sys->i_del_streams; i++ )
         {



More information about the vlc-commits mailing list