From 776c533a9ccce23bd4da43f4be97bd0fde00c169 Mon Sep 17 00:00:00 2001 From: shogo4405 Date: Mon, 16 Dec 2024 23:17:13 +0900 Subject: [PATCH] #1633 fix the degradation --- HaishinKit/Sources/Screen/ScreenObject.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/HaishinKit/Sources/Screen/ScreenObject.swift b/HaishinKit/Sources/Screen/ScreenObject.swift index 5063c00e6..02cd4cc9e 100644 --- a/HaishinKit/Sources/Screen/ScreenObject.swift +++ b/HaishinKit/Sources/Screen/ScreenObject.swift @@ -250,12 +250,14 @@ public final class VideoTrackScreenObject: ScreenObject, ChromaKeyProcessable { /// Create a screen object. override public init() { super.init() - horizontalAlignment = .center do { queue = try TypedBlockQueue(capacity: Self.capacity, handlers: .outputPTSSortedSampleBuffers) } catch { logger.error(error) } + Task { + horizontalAlignment = .center + } } /// Registers a video effect.