[vlc-commits] delay: fix redundant test

Rémi Denis-Courmont git at videolan.org
Tue Apr 26 22:14:21 CEST 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Apr 26 23:03:58 2016 +0300| [25f268c67cd25253a5f2ac433cf948bbff9ff6b7] | committer: Rémi Denis-Courmont

delay: fix redundant test

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

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

diff --git a/modules/stream_out/delay.c b/modules/stream_out/delay.c
index 340694a..602810e 100644
--- a/modules/stream_out/delay.c
+++ b/modules/stream_out/delay.c
@@ -163,9 +163,9 @@ static int Send( sout_stream_t *p_stream, sout_stream_id_sys_t *id,
         block_t *p_block = p_buffer;
         while ( p_block != NULL )
         {
-            if ( p_block->i_pts && p_block->i_pts != VLC_TS_INVALID )
+            if ( p_block->i_pts != VLC_TS_INVALID )
                 p_block->i_pts += p_sys->i_delay;
-            if ( p_block->i_dts && p_block->i_dts != VLC_TS_INVALID )
+            if ( p_block->i_dts != VLC_TS_INVALID )
                 p_block->i_dts += p_sys->i_delay;
             p_block = p_block->p_next;
         }



More information about the vlc-commits mailing list