Skip to content

compositor: Prevent startup crash when hdcp mode is set on display

Derek Foreman requested to merge derekf/weston:hdcp_crash into main

We can startup with the display already in type1 content protection mode. When this happens, we call weston_output_dirty_paint_nodes() on a display that hasn't yet been enabled. The paint node list isn't initialized yet, so we crash.

We don't actually need to touch the paint nodes here anyway, as weston_output_damage() ensures a repaint if the ourput is enabled, and weston_output_dirty_paint_nodes() just forces calculation of things unrelated to protection, and we'll override most of that in maybe_replace_paint_node() if necessary when we get there.

Just drop the weston_output_dirty_paint_nodes() call to stop the crash.

Signed-off-by: Derek Foreman derek.foreman@collabora.com

Merge request reports

Loading