[host] app: report the full capture name to the client

This commit is contained in:
Geoffrey McRae 2022-01-26 19:32:55 +11:00
parent efa49391fc
commit ccdf7b7c0e
2 changed files with 8 additions and 2 deletions

View File

@ -64,7 +64,13 @@ static CaptureResult dxgi_releaseFrame();
static const char * dxgi_getName(void)
{
return "DXGI";
if (!this)
return "DXGI";
static char name[64];
snprintf(name, sizeof(name), "DXGI %s", this->backend->name);
return name;
}
static void dxgi_initOptions(void)

View File

@ -583,7 +583,7 @@ static bool newKVMFRData(KVMFRUserData * dst)
const uint8_t * uuid = os_getUUID();
memcpy(vmInfo.uuid, uuid, 16);
strncpy(vmInfo.capture, app.iface->shortName, sizeof(vmInfo.capture) - 1);
strncpy(vmInfo.capture, app.iface->getName(), sizeof(vmInfo.capture) - 1);
const int modelLen = strlen(model) + 1;
const KVMFRRecord record =