[vlc-commits] mosaic_bridge: use operation structure
Rémi Denis-Courmont
git at videolan.org
Sat Oct 10 11:46:01 CEST 2020
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Oct 10 12:41:28 2020 +0300| [559f08fca46770ef74de5e10e661f4d8afd588c1] | committer: Rémi Denis-Courmont
mosaic_bridge: use operation structure
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=559f08fca46770ef74de5e10e661f4d8afd588c1
---
modules/stream_out/mosaic_bridge.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/modules/stream_out/mosaic_bridge.c b/modules/stream_out/mosaic_bridge.c
index 7a82a0eea7..2f3a0007d6 100644
--- a/modules/stream_out/mosaic_bridge.c
+++ b/modules/stream_out/mosaic_bridge.c
@@ -168,6 +168,10 @@ vlc_module_begin ()
set_callbacks( Open, Close )
vlc_module_end ()
+static const struct sout_stream_operations ops = {
+ Add, Del, Send, NULL, NULL,
+};
+
static const char *const ppsz_sout_options[] = {
"id", "width", "height", "sar", "vfilter", "chroma", "alpha", "x", "y", NULL
};
@@ -247,9 +251,7 @@ static int Open( vlc_object_t *p_this )
#undef INT_COMMAND
- p_stream->pf_add = Add;
- p_stream->pf_del = Del;
- p_stream->pf_send = Send;
+ p_stream->ops = &ops;
p_stream->pace_nocontrol = true;
return VLC_SUCCESS;
More information about the vlc-commits
mailing list