[vlc-commits] interop_cvpx: init last_cvtexs the first time

Alexandre Janniaux git at videolan.org
Fri Jan 29 11:06:28 UTC 2021


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Thu Jan 28 17:57:43 2021 +0100| [33dc00be6f26ff93e8b08183e212791df2fae0c5] | committer: Alexandre Janniaux

interop_cvpx: init last_cvtexs the first time

It was initialized to zero because of calloc().

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

 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 = {



More information about the vlc-commits mailing list