Fixed issue #32

This commit is contained in:
jojo61 2020-03-02 16:11:33 +01:00
parent b1a642e64a
commit 3d23288bdc
1 changed files with 4 additions and 4 deletions

View File

@ -3459,11 +3459,11 @@ bool cPluginSoftHdDevice::SetupParse(const char *name, const char *value)
return true; return true;
} }
if (!strcasecmp(name, "AudioPassthrough")) { if (!strcasecmp(name, "AudioPassthrough")) {
int i; int ii;
i = atoi(value); ii = atoi(value);
AudioPassthroughState = i > 0; AudioPassthroughState = ii > 0;
ConfigAudioPassthrough = abs(i); ConfigAudioPassthrough = abs(ii);
if (AudioPassthroughState) { if (AudioPassthroughState) {
CodecSetAudioPassthrough(ConfigAudioPassthrough); CodecSetAudioPassthrough(ConfigAudioPassthrough);
} else { } else {