Add language tag in demued file name

Fixes #550
This commit is contained in:
jcdr428 2022-01-29 21:28:42 +01:00
parent 8ff001a010
commit acde33a56a

View File

@ -149,6 +149,14 @@ void SingleFileMuxer::intAddStream(const std::string& streamName, const std::str
fileName += "_";
fileName += int32ToStr(cnt);
}
itr = params.find("lang");
if (itr != params.end())
{
fileName += "_";
fileName += itr->second;
}
StreamInfo* streamInfo = new StreamInfo((unsigned)DEFAULT_FILE_BLOCK_SIZE);
streamInfo->m_fileName = fileName + fileExt;
if (streamInfo->m_fileName.size() > 254)