[vlc-devel] [PATCH] doc: sdl_opengl_player: fix build

Thomas Guillem thomas at gllm.fr
Tue Apr 28 21:13:03 CEST 2020


indeed, thanks

On Tue, Apr 28, 2020, at 17:03, Pierre Lamot wrote:
> Hi,
> 
> > 
> >          that->m_width = cfg->width;
> > @@ -163,7 +163,7 @@ public:
> >      static bool setup(void** data, const 
> > libvlc_video_setup_device_cfg_t *cfg,
> >                        libvlc_video_setup_device_info_t *out)
> >      {
> > -        VLCVideo** that = static_cast<VLCVideo**>(data);
> > +        VLCVideo** that = static_cast<VLCVideo**>(*data);
> >          (*that)->m_width = 0;
> >          (*that)->m_height = 0;
> 
> 
> I think it rather should be
> 
>          VLCVideo* that = static_cast<VLCVideo*>(*data);
>          that->m_width = 0;
>          that->m_height = 0;
> 
>


More information about the vlc-devel mailing list