decklink: Add Linux DeckLink project
The code specific to Linux helps convert `const char *` instances to `std::string`s.
This commit is contained in:
parent
c9ff86dd01
commit
70f8369ae3
4 changed files with 60 additions and 1 deletions
12
plugins/decklink/linux/platform.cpp
Normal file
12
plugins/decklink/linux/platform.cpp
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#include "../platform.hpp"
|
||||
|
||||
bool DeckLinkStringToStdString(decklink_string_t input, std::string& output)
|
||||
{
|
||||
if (input == nullptr)
|
||||
return false;
|
||||
|
||||
output = std::string(input);
|
||||
free((void *)input);
|
||||
|
||||
return true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue