Skip to content

Commit

Permalink
screencast: workaround corrupted output_list
Browse files Browse the repository at this point in the history
  • Loading branch information
columbarius authored and emersion committed Apr 2, 2021
1 parent d556426 commit 94f1f5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/screencast/wlr_screencast.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,8 @@ static bool wlr_output_chooser(struct xdpw_output_chooser *chooser,

logprint(TRACE, "wlroots: output chooser %s selects output %s", chooser->cmd, name);
wl_list_for_each(out, output_list, link) {
if (strcmp(out->name, name) == 0) {
// TODO: Replugging of outputs can result in a corrupted output_list
if (out->name && strcmp(out->name, name) == 0) {
*output = out;
break;
}
Expand Down

0 comments on commit 94f1f5d

Please sign in to comment.