[vlc-commits] doc: sdl_opengl_player: fix build

Thomas Guillem git at videolan.org
Mon May 4 10:08:55 CEST 2020


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Apr 28 14:04:12 2020 +0200| [26e9f4b2f7c326920cc8f70ef6391902eaea527b] | committer: Thomas Guillem

doc: sdl_opengl_player: fix build

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=26e9f4b2f7c326920cc8f70ef6391902eaea527b
---

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

diff --git a/doc/libvlc/sdl_opengl_player.cpp b/doc/libvlc/sdl_opengl_player.cpp
index bb1c0a303d..7a8297d658 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,9 +163,9 @@ 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);
-        (*that)->m_width = 0;
-        (*that)->m_height = 0;
+        VLCVideo* that = static_cast<VLCVideo*>(*data);
+        that->m_width = 0;
+        that->m_height = 0;
         return true;
     }
 



More information about the vlc-commits mailing list