vlc | branch: master | Steve Lhomme <[email protected]> | Wed Feb 20 15:58:41 2019 +0100| [881858d7403811b65c59cc4b588a1eae18864a7f] | committer: Steve Lhomme
opencv_wrapper: simplify code > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=881858d7403811b65c59cc4b588a1eae18864a7f --- modules/video_filter/opencv_wrapper.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/video_filter/opencv_wrapper.c b/modules/video_filter/opencv_wrapper.c index a85cef9772..0525597c1b 100644 --- a/modules/video_filter/opencv_wrapper.c +++ b/modules/video_filter/opencv_wrapper.c @@ -351,7 +351,6 @@ static void VlcPictureToIplImage( filter_t* p_filter, picture_t* p_in ) return; } - p_sys->p_to_be_freed = p_sys->p_proc_image; //remember this so we can free it later } else //((p_sys->f_scale != 1) || (p_sys->i_internal_chroma != CINPUT)) @@ -361,8 +360,8 @@ static void VlcPictureToIplImage( filter_t* p_filter, picture_t* p_in ) // image filtering) and picture leaking. p_sys->p_proc_image = filter_NewPicture( p_filter ); //p_in picture_Copy( p_sys->p_proc_image, p_in ); - p_sys->p_to_be_freed = p_sys->p_proc_image; } + p_sys->p_to_be_freed = p_sys->p_proc_image; //remember this so we can free it later //Convert to the IplImage array that is to be processed. //If there are multiple planes in p_sys->p_proc_image, then 1 IplImage _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
