Closed kranercc closed 1 year ago
The most likely reason it fails is game isn't open, or you are capture banned and thus need to use OBS for redirection.
The code you submitted is not valid, and Kotlin is not like C++ where you can check nullability in that way.
It crashes the thread if the framegrabber can't grab a frame? i don't know exactly why it can't grab but when it can't it crashes so this checks if there's some sort of frame insted of null