[vlc-devel] [PATCH] decoder: force output the first picture

Zhao Zhili quinkblack at foxmail.com
Thu Feb 8 14:13:21 CET 2018


> ---
>  src/input/decoder.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/src/input/decoder.c b/src/input/decoder.c
> index 0d3df97934..32cf7df851 100644
> --- a/src/input/decoder.c
> +++ b/src/input/decoder.c
> @@ -1028,9 +1028,8 @@ static int DecoderPlayVideo( decoder_t *p_dec, 
> picture_t *p_picture,
>
>      DecoderWaitUnblock( p_dec );
>
> -    if( p_owner->b_waiting )
> +    if( p_owner->b_first )
>      {
> -        assert( p_owner->b_first );
>          msg_Dbg( p_dec, "Received first picture" );
>          p_owner->b_first = false;
>          p_picture->b_force = true;

Ping for review.

There are some cases the first picture is received when b_waiting is 
false. The
first picture can be dropped if it's late, and it will delay to show if it's
too early. It would be better to always force output the first picture.




More information about the vlc-devel mailing list