[vlc-devel] [PATCH 02/11] decoder: simplify how we report lost pictures

Rémi Denis-Courmont remi at remlab.net
Sun Sep 1 18:53:19 CEST 2019


Le vendredi 30 août 2019, 09:26:53 EEST Steve Lhomme a écrit :
> @@ -1084,12 +1083,11 @@ static void DecoderUpdateStatVideo( struct
> decoder_owner *p_owner, static void DecoderQueueVideo( decoder_t *p_dec,
> picture_t *p_pic ) {
>      assert( p_pic );
> -    unsigned i_lost = 0;
>      struct decoder_owner *p_owner = dec_get_owner( p_dec );
> 
> -    DecoderPlayVideo( p_owner, p_pic, &i_lost );
> +    int success = DecoderPlayVideo( p_owner, p_pic );
> 
> -    p_owner->pf_update_stat( p_owner, 1, i_lost );
> +    p_owner->pf_update_stat( p_owner, 1, success != VLC_SUCCESS ? 1 : 0 );

This is still redundant all the same.

>  }
> 
>  static int thumbnailer_update_format( decoder_t *p_dec )


-- 
Rémi Denis-Courmont




More information about the vlc-devel mailing list