[vlc-devel] [PATCH] Assume use of vout_filter_SetupChild is better than vout_filter_{Add, Del}Child

Nicolas Chauvet (kwizart) kwizart at gmail.com
Fri Apr 24 14:36:57 CEST 2009


Number of arguments aren't the same for thoses functions
---
 modules/video_filter/opencv_wrapper.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/video_filter/opencv_wrapper.c b/modules/video_filter/opencv_wrapper.c
index 1ccbaae..b2054df 100644
--- a/modules/video_filter/opencv_wrapper.c
+++ b/modules/video_filter/opencv_wrapper.c
@@ -356,7 +356,7 @@ static int Init( vout_thread_t *p_vout )
 
     vout_filter_AllocateDirectBuffers( p_vout, VOUT_MAX_PICTURES );
 
-    vout_filter_AddChild( p_vout, p_vout->p_sys->p_vout, NULL, NULL, true );
+    vout_filter_SetupChild( p_vout, p_vout->p_sys->p_vout, NULL, NULL, true );
 
     return VLC_SUCCESS;
 }
@@ -368,7 +368,7 @@ static void End( vout_thread_t *p_vout )
 {
     vout_sys_t *p_sys = p_vout->p_sys;
 
-    vout_filter_DelChild( p_vout, p_sys->p_vout, NULL, NULL, true );
+    vout_filter_SetupChild( p_vout, p_sys->p_vout, NULL, NULL, true );
     vout_CloseAndRelease( p_sys->p_vout );
 
     vout_filter_ReleaseDirectBuffers( p_vout );
-- 
1.6.0.6




More information about the vlc-devel mailing list