TS: Fix crashing with CSA
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 13 Aug 2014 08:16:09 +0000 (10:16 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 13 Aug 2014 08:16:09 +0000 (10:16 +0200)
Close #11955

modules/mux/mpeg/ts.c

index 71bc864..4f13f05 100644 (file)
@@ -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;
 }