[vlc-devel] [PATCH v1 03/33] image: use helper function to filter a picture

Steve Lhomme robux4 at ycbcr.xyz
Fri Sep 25 16:46:39 CEST 2020


---
 src/misc/image.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/misc/image.c b/src/misc/image.c
index faa05d9b018..d2f5ce25f48 100644
--- a/src/misc/image.c
+++ b/src/misc/image.c
@@ -270,7 +270,7 @@ static picture_t *ImageRead( image_handler_t *p_image, block_t *p_block,
             video_format_Copy( &p_image->p_converter->fmt_out.video, p_fmt_out);
         }
 
-        p_pic = p_image->p_converter->pf_video_filter( p_image->p_converter, p_pic );
+        p_pic = filter_FilterSingle( p_image->p_converter, p_pic );
     }
     else
     {
@@ -433,8 +433,7 @@ static block_t *ImageWrite( image_handler_t *p_image, picture_t *p_pic,
 
         picture_Hold( p_pic );
 
-        p_tmp_pic =
-            p_image->p_converter->pf_video_filter( p_image->p_converter, p_pic );
+        p_tmp_pic = filter_FilterSingle( p_image->p_converter, p_pic );
 
         if( likely(p_tmp_pic != NULL) )
         {
@@ -569,7 +568,7 @@ static picture_t *ImageConvert( image_handler_t *p_image, picture_t *p_pic,
 
     picture_Hold( p_pic );
 
-    return p_image->p_converter->pf_video_filter( p_image->p_converter, p_pic );
+    return filter_FilterSingle( p_image->p_converter, p_pic );
 }
 
 /**
-- 
2.26.2



More information about the vlc-devel mailing list