[vlc-commits] decoder: remove always true if condition

Steve Lhomme git at videolan.org
Tue Sep 3 10:12:23 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Aug 27 07:23:41 2019 +0200| [79ab3ac4b286eb2d3c5343e417b62aed79374ebd] | committer: Steve Lhomme

decoder: remove always true if condition

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

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

diff --git a/src/input/decoder.c b/src/input/decoder.c
index eb704ac419..3f063ad019 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -1167,7 +1167,7 @@ static int DecoderPlayAudio( struct decoder_owner *p_owner, block_t *p_audio )
 
     audio_output_t *p_aout = p_owner->p_aout;
 
-    if( p_aout != NULL && p_audio->i_pts != VLC_TICK_INVALID )
+    if( p_aout != NULL )
     {
         int status = aout_DecPlay( p_aout, p_audio );
         if( status == AOUT_DEC_CHANGED )



More information about the vlc-commits mailing list