[vlc-devel] [PATCH 05/16] mux: asf: use sout_mux_operations table
Alexandre Janniaux
ajanni at videolabs.io
Mon Mar 15 17:02:58 UTC 2021
---
modules/mux/asf.c | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/modules/mux/asf.c b/modules/mux/asf.c
index 1f287745ca..009b62755c 100644
--- a/modules/mux/asf.c
+++ b/modules/mux/asf.c
@@ -193,10 +193,14 @@ static int Open( vlc_object_t *p_this )
msg_Dbg( p_mux, "asf muxer opened" );
config_ChainParse( p_mux, SOUT_CFG_PREFIX, ppsz_sout_options, p_mux->p_cfg );
- p_mux->pf_control = Control;
- p_mux->pf_addstream = AddStream;
- p_mux->pf_delstream = DelStream;
- p_mux->pf_mux = Mux;
+ static const struct sout_mux_operations mux_ops =
+ {
+ .control = Control,
+ .add_stream = AddStream,
+ .del_stream = DelStream,
+ .mux = Mux,
+ };
+ p_mux->ops = &mux_ops;
p_mux->p_sys = p_sys = malloc( sizeof( sout_mux_sys_t ) );
if( !p_sys )
--
2.30.2
More information about the vlc-devel
mailing list