Skip to content
Snippets Groups Projects
Commit 27e01fd8 authored by Aline Gondim Santos's avatar Aline Gondim Santos
Browse files

WaterMark: fix filter init if locale does not use . as decimal

Change-Id: I26ddc4ba70a3d7c882a52ab6d5770bf09a26adb4
parent adba0af0
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,8 @@ WatermarkVideoSubscriber::WatermarkVideoSubscriber(const std::string& dataPath,
if (std::setlocale(LC_TIME, std::locale("").name().c_str()) == NULL) {
Plog::log(Plog::LogPriority::INFO, TAG, "error while setting locale");
}
std::setlocale(LC_NUMERIC, "C");
fontFile_ = dataPath + sep + "Muli-Light.ttf";
#ifdef WIN32
for (int i = fontFile_.size(); i > 0; i--)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment