[vlc-devel] [PATCH v1 1/3] decoder: Always show forced pictures, even during preroll
Michael Tänzer
neo at nhng.de
Thu Mar 3 20:02:47 CET 2016
If a picture has b_force set it is expected to be shown until the next
image is decoded. If we are in the preroll and don't show forced pictures
there might not be a picture when the preroll is finished.
---
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 a1d7414..b66c885 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -835,7 +835,7 @@ static int DecoderPlayVideo( decoder_t *p_dec, picture_t *p_picture,
bool prerolled;
vlc_mutex_lock( &p_owner->lock );
- if( p_owner->i_preroll_end > p_picture->date )
+ if( !p_picture->b_force && p_owner->i_preroll_end > p_picture->date )
{
vlc_mutex_unlock( &p_owner->lock );
picture_Release( p_picture );
--
2.5.0
More information about the vlc-devel
mailing list