[vlc-devel] [PATCH 2/2] opencv_example: fix compilation
Zhao Zhili
quinkblack at foxmail.com
Thu May 24 09:01:20 CEST 2018
On 2018年04月27日 10:10, Zhao Zhili wrote:
> ---
> modules/video_filter/opencv_example.cpp | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/modules/video_filter/opencv_example.cpp b/modules/video_filter/opencv_example.cpp
> index a7a0bd7..c3a5fe9 100644
> --- a/modules/video_filter/opencv_example.cpp
> +++ b/modules/video_filter/opencv_example.cpp
> @@ -129,7 +129,7 @@ static int OpenFilter( vlc_object_t *p_this )
> static void CloseFilter( vlc_object_t *p_this )
> {
> filter_t *p_filter = (filter_t*)p_this;
> - filter_sys_t *p_sys = p_filter->p_sys;
> + filter_sys_t *p_sys = static_cast<filter_sys_t *>(p_filter->p_sys);
>
> if( p_sys->p_cascade )
> cvReleaseHaarClassifierCascade( &p_sys->p_cascade );
> @@ -151,7 +151,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
> IplImage** p_img = NULL;
> CvPoint pt1, pt2;
> int scale = 1;
> - filter_sys_t *p_sys = p_filter->p_sys;
> + filter_sys_t *p_sys = static_cast<filter_sys_t *>(p_filter->p_sys);
>
> if ((!p_pic) )
> {
Since we have the same issue as FFmpeg
http://ffmpeg.org/pipermail/ffmpeg-devel/2018-March/226872.html
How to deal with the module?
1. Update to C++ API?
2. Fix the build issue and hope it works as long as possible?
3. Remove the module?
More information about the vlc-devel
mailing list