提交 57d580f8 编写于 作者: J jp9000

linux-capture: Convert window strings to UTF-8 strings

The UI expects everything to be in UTF-8, so convert all window strings
to UTF-8 whenever getting a window name.
上级 6eea842d
......@@ -7,6 +7,7 @@
#include <pthread.h>
#include <obs-module.h>
#include <util/platform.h>
#include "xcompcap-helper.hpp"
......@@ -199,6 +200,11 @@ namespace XCompcap
}
}
char *conv = nullptr;
if (os_mbs_to_utf8_ptr(res.c_str(), 0, &conv))
res = conv;
bfree(conv);
XFree(tp.value);
return res;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册