[vlc-commits] es_out: no need to init a value that won't be used

Steve Lhomme git at videolan.org
Sat May 5 18:10:23 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Sat May  5 09:53:49 2018 +0200| [b66a03b162dd67a2ae841cb315a3a5e874507d1c] | committer: Rémi Denis-Courmont

es_out: no need to init a value that won't be used

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 src/input/es_out.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/input/es_out.c b/src/input/es_out.c
index 96ec63ebf0..0a5ffed3d8 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -782,7 +782,7 @@ static void EsOutDecoderChangeDelay( es_out_t *out, es_out_id_t *p_es )
 {
     es_out_sys_t *p_sys = out->p_sys;
 
-    mtime_t i_delay = 0;
+    mtime_t i_delay;
     if( p_es->fmt.i_cat == AUDIO_ES )
         i_delay = p_sys->i_audio_delay;
     else if( p_es->fmt.i_cat == SPU_ES )



More information about the vlc-commits mailing list