[vlc-devel] [PATCH 4/5] duplicate: remove write-only variable

RĂ©mi Denis-Courmont remi at remlab.net
Sun Oct 11 15:22:58 CEST 2020


---
 modules/stream_out/duplicate.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/stream_out/duplicate.c b/modules/stream_out/duplicate.c
index 7837adbee0..1b3236a00e 100644
--- a/modules/stream_out/duplicate.c
+++ b/modules/stream_out/duplicate.c
@@ -126,11 +126,11 @@ static int Open( vlc_object_t *p_this )
     {
         if( !strncmp( p_cfg->psz_name, "dst", strlen( "dst" ) ) )
         {
-            sout_stream_t *s, *p_last;
+            sout_stream_t *s;
 
             msg_Dbg( p_stream, " * adding `%s'", p_cfg->psz_value );
             s = sout_StreamChainNew( VLC_OBJECT(p_stream), p_cfg->psz_value,
-                p_stream->p_next, &p_last );
+                p_stream->p_next, NULL );
 
             if( s )
             {
-- 
2.28.0



More information about the vlc-devel mailing list