1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-12 21:30:32 +05:30

Fix possible crash

This commit is contained in:
Arkadiusz Fal 2023-10-15 00:29:09 +02:00
parent 674269c4c1
commit 04e56638ce

View File

@ -290,8 +290,8 @@ struct Video: Identifiable, Equatable, Hashable {
} }
var localStreamIsFile: Bool { var localStreamIsFile: Bool {
guard let localStream else { return false } guard let url = localStream?.localURL else { return false }
return localStream.localURL.isFileURL return url.isFileURL
} }
var localStreamIsRemoteURL: Bool { var localStreamIsRemoteURL: Bool {