From 9148de2c07eb2d99a9f873cabf8162b1c86bbad5 Mon Sep 17 00:00:00 2001 From: kinarobin Date: Sat, 9 Oct 2021 17:31:11 +0800 Subject: [PATCH] add tvos check in targetTimestamp --- SDWebImage/Private/SDDisplayLink.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImage/Private/SDDisplayLink.m b/SDWebImage/Private/SDDisplayLink.m index 39371794..1dcfd99f 100644 --- a/SDWebImage/Private/SDDisplayLink.m +++ b/SDWebImage/Private/SDDisplayLink.m @@ -90,7 +90,7 @@ static CVReturn DisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTimeSt #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wdeprecated-declarations" NSTimeInterval duration = 0; - if (@available(iOS 10.0, *)) { + if (@available(iOS 10.0, tvOS 10.0, *)) { duration = self.displayLink.targetTimestamp - CACurrentMediaTime(); } else { duration = self.displayLink.duration * self.displayLink.frameInterval;