[vlc-commits] TS: Fix crashing with CSA

Jean-Baptiste Kempf git at videolan.org
Wed Aug 13 10:17:06 CEST 2014


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Aug 13 10:16:09 2014 +0200| [5d8962447c6c31136597cc6c8b4efed947d144e2] | committer: Jean-Baptiste Kempf

TS: Fix crashing with CSA

Close #11955

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

 modules/mux/mpeg/ts.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/mux/mpeg/ts.c b/modules/mux/mpeg/ts.c
index 71bc864..4f13f05 100644
--- a/modules/mux/mpeg/ts.c
+++ b/modules/mux/mpeg/ts.c
@@ -723,13 +723,14 @@ static int Open( vlc_object_t *p_this )
 
     p_sys->b_use_key_frames = var_GetBool( p_mux, SOUT_CFG_PREFIX "use-key-frames" );
 
+    p_mux->p_sys        = p_sys;
+
     p_sys->csa = csaSetup(p_this);
 
     p_mux->pf_control   = Control;
     p_mux->pf_addstream = AddStream;
     p_mux->pf_delstream = DelStream;
     p_mux->pf_mux       = Mux;
-    p_mux->p_sys        = p_sys;
 
     return VLC_SUCCESS;
 }



More information about the vlc-commits mailing list