[vlc-devel] [PATCH v2 18/24] fps: use the picture_chain API

Steve Lhomme robux4 at ycbcr.xyz
Fri Sep 18 16:45:24 CEST 2020


p_sys->p_previous_pic represents the picture chain.
---
 modules/video_filter/fps.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/modules/video_filter/fps.c b/modules/video_filter/fps.c
index e6688c4f20b..df537872929 100644
--- a/modules/video_filter/fps.c
+++ b/modules/video_filter/fps.c
@@ -124,10 +124,8 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_picture)
 
         picture_Copy( p_tmp, p_sys->p_previous_pic);
         p_tmp->date = date_Get( &p_sys->next_output_pts );
-        p_tmp->p_next = NULL;
 
-        last_pic->p_next = p_tmp;
-        last_pic = p_tmp;
+        last_pic = picture_chain_append( last_pic, p_tmp );
         date_Increment( &p_sys->next_output_pts, 1 );
     }
 
-- 
2.26.2



More information about the vlc-devel mailing list