Skip to content

Commit 776c533

Browse files
committed
#1633 fix the degradation
1 parent 12671a5 commit 776c533

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

HaishinKit/Sources/Screen/ScreenObject.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,12 +250,14 @@ public final class VideoTrackScreenObject: ScreenObject, ChromaKeyProcessable {
250250
/// Create a screen object.
251251
override public init() {
252252
super.init()
253-
horizontalAlignment = .center
254253
do {
255254
queue = try TypedBlockQueue(capacity: Self.capacity, handlers: .outputPTSSortedSampleBuffers)
256255
} catch {
257256
logger.error(error)
258257
}
258+
Task {
259+
horizontalAlignment = .center
260+
}
259261
}
260262

261263
/// Registers a video effect.

0 commit comments

Comments
 (0)