mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-20 05:01:51 -04:00
decklink: Add Linux DeckLink project
The code specific to Linux helps convert `const char *` instances to `std::string`s.
This commit is contained in:
1 parent
c9ff86dd01
commit
70f8369ae3
4 files changed
+60
-1
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user