From c456d1ab6cfd0dc237c458716c7c20ccea98f8ae Mon Sep 17 00:00:00 2001 From: akanchi Date: Wed, 8 Dec 2021 11:10:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(iOS):=20MTLRenderCommandEncoder=E9=87=8A?= =?UTF-8?q?=E6=94=BE=E5=89=8D=E9=9C=80=E8=A6=81=E8=B0=83=E7=94=A8-[MTLRend?= =?UTF-8?q?erCommandEncoder=20endEncoding],=20=E9=81=BF=E5=85=8D=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=E6=96=AD=E8=A8=80=E2=80=98Command=20encoder=20release?= =?UTF-8?q?d=20without=20endEncoding=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../QGVAPlayer/Classes/Views/Metal/Vapx/QGVAPMetalRenderer.m | 1 + 1 file changed, 1 insertion(+) diff --git a/iOS/QGVAPlayer/QGVAPlayer/Classes/Views/Metal/Vapx/QGVAPMetalRenderer.m b/iOS/QGVAPlayer/QGVAPlayer/Classes/Views/Metal/Vapx/QGVAPMetalRenderer.m index 48b295bd..2541ce75 100644 --- a/iOS/QGVAPlayer/QGVAPlayer/Classes/Views/Metal/Vapx/QGVAPMetalRenderer.m +++ b/iOS/QGVAPlayer/QGVAPlayer/Classes/Views/Metal/Vapx/QGVAPMetalRenderer.m @@ -120,6 +120,7 @@ - (void)renderPixelBuffer:(CVPixelBufferRef)pixelBuffer metalLayer:(CAMetalLayer } if (self.vertexBuffer == nil || self.yuvMatrixBuffer == nil) { VAP_Error(kQGVAPModuleCommon, @"quit rendering cuz vertexBuffer:%p or yuvMatrixBuffer:%p is nil!", self.vertexBuffer, self.yuvMatrixBuffer); + [renderEncoder endEncoding]; return ; }