case CActiveAEControlProtocol::DEVICECHANGE:
time_t now;
time(&now);
+ CLog::Log(LOGDEBUG,"CActiveAE - device change event");
while (!m_extLastDeviceChange.empty() && (now - m_extLastDeviceChange.front() > 0))
{
m_extLastDeviceChange.pop();
}
m_extLastDeviceChange.push(now);
UnconfigureSink();
+ m_controlPort.PurgeOut(CActiveAEControlProtocol::DEVICECHANGE);
m_sink.EnumerateSinkList(true);
LoadSettings();
m_extError = false;
m_state = AE_TOP_ERROR;
m_extTimeout = 500;
}
- m_controlPort.PurgeOut(CActiveAEControlProtocol::DEVICECHANGE);
return;
case CActiveAEControlProtocol::PAUSESTREAM:
CActiveAEStream *stream;
switch (signal)
{
case CActiveAEControlProtocol::DISPLAYRESET:
+ CLog::Log(LOGDEBUG,"CActiveAE - display reset event");
displayReset = true;
case CActiveAEControlProtocol::INIT:
m_extError = false;
if (!displayReset)
{
+ m_controlPort.PurgeOut(CActiveAEControlProtocol::DEVICECHANGE);
m_sink.EnumerateSinkList(true);
LoadSettings();
}