Skip to content

Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.

C++

test(capture): recognize the process main STA apartment

Veyra Goal Agent6f683ef331b5
diff --git a/tests/fixtures/FakeAverMediaVendor.cpp b/tests/fixtures/FakeAverMediaVendor.cpp
index a68a4e8c..1eaf6918 100644
--- a/tests/fixtures/FakeAverMediaVendor.cpp
+++ b/tests/fixtures/FakeAverMediaVendor.cpp
@@ -15,7 +15,7 @@ using Logger=void(*)(const char*,char*);Logger logger=nullptr;
struct Graph {AudioDealer* dealer=nullptr;std::atomic<bool> stop=false;std::thread thread;};
Graph*& graph(void* self){return *reinterpret_cast<Graph**>(self);}
void trace(const char* format,...){va_list args;va_start(args,format);if(logger)logger(format,args);va_end(args);}
-void apartment(){APTTYPE type;APTTYPEQUALIFIER qualifier;sta=sta&&SUCCEEDED(CoGetApartmentType(&type,&qualifier))&&type==APTTYPE_STA;}
+void apartment(){APTTYPE type;APTTYPEQUALIFIER qualifier;sta=sta&&SUCCEEDED(CoGetApartmentType(&type,&qualifier))&&(type==APTTYPE_STA||type==APTTYPE_MAINSTA);}
}
extern "C" {
__declspec(dllexport) void FakeMode(const wchar_t* value){mode=value;starts=stops=callbacks=live=0;sta=true;}