+ psz = var_CreateGetString( p_vout, "opengl-provider" );
+ p_sys->p_vout->p_module =
+ module_need( p_sys->p_vout, "opengl provider", psz, false );
+ free( psz );
+ if( p_sys->p_vout->p_module == NULL )
+ {
+ msg_Warn( p_vout, "No OpenGL provider found" );
+ vlc_object_detach( p_sys->p_vout );
+ /* no need for var_DelCallback here :-) */
+ vlc_object_release( p_sys->p_vout );
+ free( p_sys );
+ return VLC_ENOOBJ;
+ }
+
+ p_vout->pf_init = Init;
+ p_vout->pf_end = End;
+ p_vout->pf_manage = Manage;
+ p_vout->pf_render = Render;
+ p_vout->pf_display = DisplayVideo;
+ p_vout->pf_control = Control;
+