mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-05-07 06:44:59 -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:
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;
|
||||
}
|
||||
Reference in New Issue
Block a user