FIX: [STUDIO-3329] not auto play liveview when not connected
Change-Id: I8a5ad388bc86598f963103eb9e1baa2538894fc1
This commit is contained in:
parent
d087b6c94a
commit
699cc2cf44
|
@ -97,7 +97,7 @@ void MediaPlayCtrl::SetMachineObject(MachineObject* obj)
|
||||||
m_device_busy = false;
|
m_device_busy = false;
|
||||||
}
|
}
|
||||||
if (machine == m_machine) {
|
if (machine == m_machine) {
|
||||||
if (m_last_state == MEDIASTATE_IDLE)
|
if (m_last_state == MEDIASTATE_IDLE && IsEnabled())
|
||||||
Play();
|
Play();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -113,7 +113,7 @@ void MediaPlayCtrl::SetMachineObject(MachineObject* obj)
|
||||||
m_streaming = false;
|
m_streaming = false;
|
||||||
}
|
}
|
||||||
if (m_last_state != MEDIASTATE_IDLE)
|
if (m_last_state != MEDIASTATE_IDLE)
|
||||||
Stop();
|
Stop(" ");
|
||||||
if (m_next_retry.IsValid()) // Try open 2 seconds later, to avoid state conflict
|
if (m_next_retry.IsValid()) // Try open 2 seconds later, to avoid state conflict
|
||||||
m_next_retry = wxDateTime::Now() + wxTimeSpan::Seconds(2 * m_failed_retry);
|
m_next_retry = wxDateTime::Now() + wxTimeSpan::Seconds(2 * m_failed_retry);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue