Allow overriding application name with -DAPPNAME="Name here"

This commit is contained in:
Thulinma 2019-11-28 01:58:12 +01:00
parent a8e04e1787
commit 771fad390a
21 changed files with 57 additions and 49 deletions

View file

@ -1515,9 +1515,10 @@ namespace TS{
entry.setFreeCAM(true); // Not conditional access
std::string sdti;
sdti += (char)0x48;
sdti += (char)(15 + streamName.size()); // length
sdti += (char)(4 + strlen(APPNAME) + streamName.size()); // length
sdti += (char)1; // digital television service
sdti.append("\012MistServer");
sdti += (char)strlen(APPNAME);
sdti.append(APPNAME);
sdti += (char)streamName.size();
sdti.append(streamName);
entry.setESInfo(sdti);