FIX:fixed crash caused by updating camera popup

Change-Id: Icaae587ef3c9bb022b0f5bdaeb8d427051b558c1
This commit is contained in:
tao wang
2023-06-19 20:26:34 +08:00
committed by Lane.Wei
parent 55ca3830db
commit ed8adcc89a

View File

@@ -1234,7 +1234,7 @@ void StatusPanel::update_camera_state(MachineObject* obj)
}
//camera setting
if (m_camera_popup) {
if (m_camera_popup && m_camera_popup->IsShown()) {
bool show_vcamera = m_media_play_ctrl->IsStreaming();
m_camera_popup->update(show_vcamera);
}