Skip to content

Commit

Permalink
platforms/atomic-kms: Don't crash on pageflip failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
RAOF committed Oct 24, 2024
1 parent 1b0062f commit a816adb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platforms/atomic-kms/server/kms/atomic_kms_output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,8 @@ bool mga::AtomicKMSOutput::schedule_page_flip(FBHandle const& fb)
if (ret)
{
mir::log_error("Failed to schedule page flip: %s (%i)", strerror(-ret), -ret);
current_crtc = nullptr;
event_handler->cancel_flip_events(current_crtc->crtc_id);
current_crtc = nullptr;
return false;
}

Expand Down

0 comments on commit a816adb

Please sign in to comment.