mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
Decklink: add output support
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#include "decklink-devices.hpp"
|
||||
|
||||
DeckLinkDeviceDiscovery *deviceEnum = nullptr;
|
||||
|
||||
void fill_out_devices(obs_property_t *list)
|
||||
{
|
||||
deviceEnum->Lock();
|
||||
|
||||
const std::vector<DeckLinkDevice*> &devices = deviceEnum->GetDevices();
|
||||
for (DeckLinkDevice *device : devices) {
|
||||
obs_property_list_add_string(list,
|
||||
device->GetDisplayName().c_str(),
|
||||
device->GetHash().c_str());
|
||||
}
|
||||
|
||||
deviceEnum->Unlock();
|
||||
}
|
||||
Reference in New Issue
Block a user