[vlc-devel] [PATCH 8/8] decoder: remove always true boolean

Steve Lhomme robux4 at ycbcr.xyz
Tue Aug 27 07:27:19 CEST 2019


---
 src/input/decoder.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index 3f60c453c0..305846eb36 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -1035,8 +1035,6 @@ static bool DecoderPlayVideo( struct decoder_owner *p_owner, picture_t *p_pictur
         p_picture->b_force = true;
     }
 
-    const bool b_dated = p_picture->date != VLC_TICK_INVALID;
-
     vlc_mutex_unlock( &p_owner->lock );
 
     /* FIXME: The *input* FIFO should not be locked here. This will not work
@@ -1062,10 +1060,7 @@ static bool DecoderPlayVideo( struct decoder_owner *p_owner, picture_t *p_pictur
     }
     else
     {
-        if( b_dated )
-            msg_Warn( p_dec, "early picture skipped" );
-        else
-            msg_Warn( p_dec, "non-dated video buffer received" );
+        msg_Warn( p_dec, "early picture skipped" );
         goto discard;
     }
 
-- 
2.17.1



More information about the vlc-devel mailing list