[vlc-commits] fps: use the picture_chain API

Steve Lhomme git at videolan.org
Wed Sep 23 16:18:02 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Sep 17 16:52:10 2020 +0200| [3c400800c8ff38d735dc404aeeeb5313356ef143] | committer: Steve Lhomme

fps: use the picture_chain API

p_sys->p_previous_pic represents the picture chain.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3c400800c8ff38d735dc404aeeeb5313356ef143
---

 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 d2e524154d..ab78610a99 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 = vlc_picture_chain_Append( last_pic, p_tmp );
         date_Increment( &p_sys->next_output_pts, 1 );
     }
 



More information about the vlc-commits mailing list