[vlc-devel] [PATCH 08/11] decoder: remove always true boolean
Steve Lhomme
robux4 at ycbcr.xyz
Fri Aug 30 07:55:45 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 abf7daea54..6c0411f751 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -1024,8 +1024,6 @@ static int DecoderPlayVideo( struct decoder_owner *p_owner, picture_t *p_picture
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
@@ -1051,10 +1049,7 @@ static int DecoderPlayVideo( struct decoder_owner *p_owner, picture_t *p_picture
}
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