Backport of "decklink: Correctly handle SDK strings on macOS and free strings after usage on Linux" into 1.22
Backport of !4738 (merged) "decklink: Correctly handle SDK strings on macOS and free strings after usage on Linux".
Commits:
- 59ca9ef3 decklink: Correctly handle SDK strings on macOS
- a2850bcb decklink: Free SDK strings after usage on Linux
- ab946cd4 decklink: Use the macOS version of the SDK on macOS and not the Linux one
- 72e7ae72 decklink: Calculate string size before malloc
- ab582a3b decklink: Add some newlines in long defines
- f1e7ac13 decklink: Implement Windows string conversion with common API between MinGW and MSVC