[vlc-commits] vsxu: ensure that the GL context is attached

Thomas Guillem git at videolan.org
Tue Apr 25 13:55:07 CEST 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Apr 25 13:52:01 2017 +0200| [943a50ae346fc03a81c5c8dde8bd71533011dd49] | committer: Thomas Guillem

vsxu: ensure that the GL context is attached

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

 modules/visualization/vsxu.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/modules/visualization/vsxu.cpp b/modules/visualization/vsxu.cpp
index 7aa78e995c..8be523e6fa 100644
--- a/modules/visualization/vsxu.cpp
+++ b/modules/visualization/vsxu.cpp
@@ -248,7 +248,11 @@ static void *Thread( void *p_data )
     bool run = true;
 
     // tell main thread we are ready
-    vlc_gl_MakeCurrent( gl );
+    if( vlc_gl_MakeCurrent( gl ) != VLC_SUCCESS )
+    {
+        msg_Err( p_filter, "Can't attach gl context" );
+        return NULL;
+    }
 
     while ( run )
     {



More information about the vlc-commits mailing list