[vlc-commits] image: use filter_(New|Delete)Picture()

Rémi Denis-Courmont git at videolan.org
Mon Jul 28 23:55:13 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jul 28 19:49:42 2014 +0300| [848f176fe586d33de3985cf2109e4203be969c9d] | committer: Rémi Denis-Courmont

image: use filter_(New|Delete)Picture()

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

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

diff --git a/src/misc/image.c b/src/misc/image.c
index f5be25b..c7f67a1 100644
--- a/src/misc/image.c
+++ b/src/misc/image.c
@@ -349,8 +349,7 @@ static block_t *ImageWrite( image_handler_t *p_image, picture_t *p_pic,
         {
             p_block = p_image->p_enc->pf_encode_video( p_image->p_enc,
                                                        p_tmp_pic );
-            p_image->p_filter->pf_video_buffer_del( p_image->p_filter,
-                                                    p_tmp_pic );
+            filter_DeletePicture(p_image->p_filter, p_tmp_pic );
         }
         else
             p_block = NULL;
@@ -485,7 +484,7 @@ static picture_t *ImageConvert( image_handler_t *p_image, picture_t *p_pic,
     {
         /* Duplicate image */
         picture_Release( p_pif ); /* XXX: Better fix must be possible */
-        p_pif = p_image->p_filter->pf_video_buffer_new( p_image->p_filter );
+        p_pif = filter_NewPicture( p_image->p_filter );
         if( p_pif )
             picture_Copy( p_pif, p_pic );
     }



More information about the vlc-commits mailing list