mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-08-10 00:52:16 +00:00
Fix crash on monitor index not found in KMS
This commit is contained in:
@@ -727,13 +727,11 @@ namespace platf {
|
||||
}
|
||||
}
|
||||
|
||||
BOOST_LOG(error) << "Couldn't find monitor ["sv << monitor_index << ']';
|
||||
return -1;
|
||||
|
||||
// Neatly break from nested for loop
|
||||
break_loop:
|
||||
if (monitor != monitor_index) {
|
||||
BOOST_LOG(error) << "Couldn't find monitor ["sv << monitor_index << ']';
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
// Look for the cursor plane for this CRTC
|
||||
cursor_plane_id = -1;
|
||||
|
||||
Reference in New Issue
Block a user