output_pick_format: Fail if no format could be chosen

This commit is contained in:
Alexander Orzechowski 2023-05-18 01:26:30 -04:00 committed by Simon Ser
parent 75293d5fb0
commit c4bed48fcc

View File

@ -220,6 +220,12 @@ bool output_pick_format(struct wlr_output *output,
}
}
if (format->len == 0) {
wlr_drm_format_finish(format);
wlr_log(WLR_DEBUG, "Failed to pick output format");
return false;
}
return true;
}