f53df7da64
Code submissions have continually suffered from formatting inconsistencies that constantly have to be addressed. Using clang-format simplifies this by making code formatting more consistent, and allows automation of the code formatting so that maintainers can focus more on the code itself instead of code formatting.
18 lines
413 B
C++
18 lines
413 B
C++
#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();
|
|
}
|