mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 12:19:33 +01:00
fix video-metadata for windows.
This commit is contained in:
parent
460a06380c
commit
94014dc5d5
1 changed files with 8 additions and 0 deletions
|
|
@ -298,7 +298,15 @@ TranscodeFfmpeg::format_metadata (std::string key, std::string value)
|
|||
|
||||
size_t len = key.length() + v1.length() + 4;
|
||||
char *mds = (char*) calloc(len, sizeof(char));
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
/* SystemExec::make_wargs() adds quotes around the complete argument
|
||||
* windows uses CreateProcess() with a parameter string
|
||||
* (and not an array list of separate arguments)
|
||||
*/
|
||||
snprintf(mds, len, "%s=%s", key.c_str(), v1.c_str());
|
||||
#else
|
||||
snprintf(mds, len, "%s=\"%s\"", key.c_str(), v1.c_str());
|
||||
#endif
|
||||
return mds;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue