decklink: Add Linux DeckLink project

The code specific to Linux helps convert `const char *` instances to
`std::string`s.
This commit is contained in:
Skyler Lipthay
2015-02-19 17:15:59 -08:00
parent c9ff86dd01
commit 70f8369ae3
4 changed files with 60 additions and 1 deletions

View 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;
}