From 388899b94aacebd1ec8b18a6b2e943b94ba6accb Mon Sep 17 00:00:00 2001 From: homuler Date: Thu, 22 Oct 2020 21:53:51 +0900 Subject: [PATCH] fix: thread hangs when an error occured in RunInGlContext --- Assets/MediaPipe/Examples/Scripts/SceneDirector.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/MediaPipe/Examples/Scripts/SceneDirector.cs b/Assets/MediaPipe/Examples/Scripts/SceneDirector.cs index cd2189d28..b29279f05 100644 --- a/Assets/MediaPipe/Examples/Scripts/SceneDirector.cs +++ b/Assets/MediaPipe/Examples/Scripts/SceneDirector.cs @@ -164,7 +164,7 @@ IEnumerator RunGraph() { var height = webCamScreenController.Height(); var pixelData = new PixelData(colors, width, height); - graph.PushInput(pixelData); + graph.PushInput(pixelData).AssertOk(); graph.RenderOutput(webCamScreenController, pixelData); } }