[vlc-commits] duplicate: remove write-only variable

Rémi Denis-Courmont git at videolan.org
Mon Oct 12 17:03:02 CEST 2020


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Oct 11 16:17:59 2020 +0300| [4a2771daf3366dbb920eb9eebb0f835a9eed47e8] | committer: Rémi Denis-Courmont

duplicate: remove write-only variable

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4a2771daf3366dbb920eb9eebb0f835a9eed47e8
---

 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 7b56b049fe..09ca13deb4 100644
--- a/modules/stream_out/duplicate.c
+++ b/modules/stream_out/duplicate.c
@@ -133,11 +133,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 )
             {



More information about the vlc-commits mailing list