[vlc-devel] [PATCH 5/6] interop_cvpx: init last_cvtexs the first time
    Alexandre Janniaux 
    ajanni at videolabs.io
       
    Thu Jan 28 16:57:43 UTC 2021
    
    
  
It was initialized to zero because of calloc().
---
 modules/video_output/opengl/interop_cvpx.m | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/modules/video_output/opengl/interop_cvpx.m b/modules/video_output/opengl/interop_cvpx.m
index 7fc985508e..ec8681d174 100644
--- a/modules/video_output/opengl/interop_cvpx.m
+++ b/modules/video_output/opengl/interop_cvpx.m
@@ -279,6 +279,9 @@ Open(vlc_object_t *obj)
 
 #if TARGET_OS_IPHONE
     interop->handle_texs_gen = true;
+
+    for (unsigned i = 0; i < interop->tex_count; ++i)
+        priv->last_cvtexs[i] = NULL;
 #endif
     interop->priv = priv;
     static const struct vlc_gl_interop_ops ops = {
-- 
2.30.0
    
    
More information about the vlc-devel
mailing list