[vlc-devel] [PATCH 17/22] fps: use the picture_chain API
Steve Lhomme
robux4 at ycbcr.xyz
Thu Sep 17 17:33:39 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 d2e524154d0..92cc3a0874a 100644
--- a/modules/video_filter/fps.c
+++ b/modules/video_filter/fps.c
@@ -121,10 +121,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