[vlc-commits] delay: remove dead code

Rémi Denis-Courmont git at videolan.org
Wed Mar 4 21:19:42 CET 2020


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Mar  3 23:15:43 2020 +0200| [48daf5073a15001a771701ef1f9a36935b17ffca] | committer: Rémi Denis-Courmont

delay: remove dead code

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

 modules/stream_out/delay.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/modules/stream_out/delay.c b/modules/stream_out/delay.c
index 2c23d87034..524dc9a65e 100644
--- a/modules/stream_out/delay.c
+++ b/modules/stream_out/delay.c
@@ -90,12 +90,6 @@ static int Open( vlc_object_t *p_this )
     sout_stream_t     *p_stream = (sout_stream_t*)p_this;
     sout_stream_sys_t *p_sys;
 
-    if( !p_stream->p_next )
-    {
-        msg_Err( p_stream, "cannot create chain" );
-        return VLC_EGENERIC;
-    }
-
     p_sys = calloc( 1, sizeof( sout_stream_sys_t ) );
     if( !p_sys )
         return VLC_ENOMEM;



More information about the vlc-commits mailing list