[vlc-devel] [PATCH 16/18] sout record: do not use sout_stream_t.p_sout
RĂ©mi Denis-Courmont
remi at remlab.net
Sat Oct 10 14:10:59 CEST 2020
---
modules/stream_out/duplicate.c | 2 +-
modules/stream_out/record.c | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/stream_out/duplicate.c b/modules/stream_out/duplicate.c
index 516a852d18..1d12e4c42c 100644
--- a/modules/stream_out/duplicate.c
+++ b/modules/stream_out/duplicate.c
@@ -129,7 +129,7 @@ static int Open( vlc_object_t *p_this )
sout_stream_t *s, *p_last;
msg_Dbg( p_stream, " * adding `%s'", p_cfg->psz_value );
- s = sout_StreamChainNew( p_stream->p_sout, p_cfg->psz_value,
+ s = sout_StreamChainNew( VLC_OBJECT(p_stream), p_cfg->psz_value,
p_stream->p_next, &p_last );
if( s )
diff --git a/modules/stream_out/record.c b/modules/stream_out/record.c
index ce2ce958e7..1c3d50e56e 100644
--- a/modules/stream_out/record.c
+++ b/modules/stream_out/record.c
@@ -346,7 +346,8 @@ static int OutputNew( sout_stream_t *p_stream,
/* Create the output */
msg_Dbg( p_stream, "Using record output `%s'", psz_output );
- p_sys->p_out = sout_StreamChainNew( p_stream->p_sout, psz_output, NULL, NULL );
+ p_sys->p_out = sout_StreamChainNew( VLC_OBJECT(p_stream), psz_output, NULL,
+ NULL );
if( !p_sys->p_out )
goto error;
--
2.28.0
More information about the vlc-devel
mailing list