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

Steve Lhomme robux4 at ycbcr.xyz
Mon Sep 2 07:51:38 CEST 2019


On 2019-09-01 18:53, Rémi Denis-Courmont wrote:
> 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.

I don't see what is redundant here. You have to transform the error code 
into the number of lost frames.

>>   }
>>
>>   static int thumbnailer_update_format( decoder_t *p_dec )
> 
> 
> -- 
> Rémi Denis-Courmont
> 
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
> 


More information about the vlc-devel mailing list