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

Thomas Guillem thomas at gllm.fr
Tue Apr 28 14:07:00 CEST 2020


---
 doc/libvlc/sdl_opengl_player.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/libvlc/sdl_opengl_player.cpp b/doc/libvlc/sdl_opengl_player.cpp
index bb1c0a303d..dddb33b866 100644
--- a/doc/libvlc/sdl_opengl_player.cpp
+++ b/doc/libvlc/sdl_opengl_player.cpp
@@ -142,7 +142,7 @@ public:
         GLenum status = glCheckFramebufferStatus(GL_FRAMEBUFFER);
 
         if (status != GL_FRAMEBUFFER_COMPLETE) {
-            return;
+            return false;
         }
 
         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;
         return true;
-- 
2.20.1



More information about the vlc-devel mailing list