yolobs-studio/plugins/decklink/decklink-devices.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
413 B
C++
Raw Permalink Normal View History

2019-07-27 12:47:10 +00:00
#include "decklink-devices.hpp"
DeckLinkDeviceDiscovery *deviceEnum = nullptr;
void fill_out_devices(obs_property_t *list)
{
deviceEnum->Lock();
2019-09-22 21:19:10 +00:00
const std::vector<DeckLinkDevice *> &devices = deviceEnum->GetDevices();
2019-07-27 12:47:10 +00:00
for (DeckLinkDevice *device : devices) {
obs_property_list_add_string(list,
2019-09-22 21:19:10 +00:00
device->GetDisplayName().c_str(),
device->GetHash().c_str());
2019-07-27 12:47:10 +00:00
}
deviceEnum->Unlock();
}