Always update source if elgato

The resolution changes can really cause confusion when updating, so if
the source is an elgato, just always reset the filter to ensure the
resolution changes.
This commit is contained in:
jp9000 2014-09-16 13:15:25 -07:00
parent a77c286bd3
commit e30108ed6a

View File

@ -1692,7 +1692,9 @@ void DeviceSource::UpdateSettings()
if(strNewAudioDevice == "Disable" && strAudioDevice == "Disable")
bCheckSoundOutput = false;
if((bNewUseAudioRender != bUseAudioRender && bCheckSoundOutput) ||
bool eglato = sstri(strNewDevice.Array(), L"elgato") != nullptr;
if(eglato || (bNewUseAudioRender != bUseAudioRender && bCheckSoundOutput) ||
(newSoundOutputType != soundOutputType && bCheckSoundOutput) || imageCX != newCX || imageCY != newCY ||
frameIntervalDiff >= 10 || newPreferredType != preferredOutputType ||
!strDevice.CompareI(strNewDevice) || !strAudioDevice.CompareI(strNewAudioDevice) ||