fix: Allow lowercase 'path' in audio config and standardize ini

pull/23/head
Dave Behnke 1 month ago
parent 5f488f304e
commit d300a9a7ca

@ -52,7 +52,7 @@ NNGDebug = false
[Audio]
Enable = false
path = ./audio/
Path = ./audio/
[Transcoder]
Port = 10100 # TCP listening port for connection(s), set to 0 if there is no transcoder, then other two values will be ignored

@ -540,7 +540,7 @@ bool CConfigure::ReadData(const std::string &path)
case ESection::audio:
if (0 == key.compare(JENABLE))
data[g_Keys.audio.enable] = IS_TRUE(value[0]);
else if (0 == key.compare("Path"))
else if (0 == key.compare("Path") || 0 == key.compare("path"))
data[g_Keys.audio.path] = value;
else
badParam(key);

Loading…
Cancel
Save

Powered by TurnKey Linux.