From bbe52545850c8858ded370fac24b0e616e253368 Mon Sep 17 00:00:00 2001 From: Apple Date: Tue, 14 Sep 2021 16:53:22 +0530 Subject: [PATCH] gpuimage.m class main thread --- LFLiveKit/Vendor/GPUImage/iOS/GPUImageView.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/LFLiveKit/Vendor/GPUImage/iOS/GPUImageView.m b/LFLiveKit/Vendor/GPUImage/iOS/GPUImageView.m index e092b80e..207661dd 100755 --- a/LFLiveKit/Vendor/GPUImage/iOS/GPUImageView.m +++ b/LFLiveKit/Vendor/GPUImage/iOS/GPUImageView.m @@ -232,6 +232,7 @@ - (void)presentFramebuffer; - (void)recalculateViewGeometry; { + dispatch_async(dispatch_get_main_queue(), ^(void){ runSynchronouslyOnVideoProcessingQueue(^{ CGFloat heightScaling, widthScaling; @@ -271,6 +272,7 @@ - (void)recalculateViewGeometry; imageVertices[6] = widthScaling; imageVertices[7] = heightScaling; }); + }); // static const GLfloat imageVertices[] = { // -1.0f, -1.0f,