This commit is contained in:
Lily Tsuru 2024-11-23 21:46:39 -05:00
parent c373de1571
commit d185b0e855
2 changed files with 2 additions and 1 deletions

View file

@ -169,6 +169,7 @@ int main(int argc, char** argv) {
auto capture = hazelnut::CreateFramebufferCapture(hazelnut::GuessBestCaptureInterface());
if (!capture) {
printf("Failed to create a capture interface\n");
return 1;
}
printf("Successfully created a framebuffer capture interface\n");

View file

@ -20,7 +20,7 @@ namespace hazelnut {
}
// Initalize capture.
if(pCapture->Initialize())
if(!pCapture->Initialize())
return nullptr;
return std::unique_ptr<IFramebufferCapture>(pCapture);