[vlc-devel] [PATCH 3/4] interop_cvpx: use macosx-glcontext from the global state

Alexandre Janniaux ajanni at videolabs.io
Fri Nov 6 13:26:40 CET 2020


---
 modules/video_output/opengl/interop_cvpx.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/video_output/opengl/interop_cvpx.m b/modules/video_output/opengl/interop_cvpx.m
index a432c47815..bf606218ad 100644
--- a/modules/video_output/opengl/interop_cvpx.m
+++ b/modules/video_output/opengl/interop_cvpx.m
@@ -204,10 +204,10 @@ Open(vlc_object_t *obj)
 #else
     const GLenum tex_target = GL_TEXTURE_RECTANGLE;
     {
-        priv->gl_ctx = var_InheritAddress(interop->gl, "macosx-glcontext");
+        priv->gl_ctx = CGLGetCurrentContext();
         if (!priv->gl_ctx)
         {
-            msg_Err(interop->gl, "can't find macosx-glcontext");
+            msg_Warn(&interop->obj, "OpenGL provider is not using CGL, cannot use interop_cvpx");
             free(priv);
             return VLC_EGENERIC;
         }
-- 
2.29.2



More information about the vlc-devel mailing list