[vlc-devel] [PATCH] doc: sdl_opengl_player: fix build
Pierre Lamot
pierre at videolabs.io
Tue Apr 28 17:03:01 CEST 2020
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