Skip to content
Commit 4f2cc67f authored by Derek Foreman's avatar Derek Foreman Committed by Marius Vlad
Browse files

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



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: default avatarDerek Foreman <derek.foreman@collabora.com>
parent b4386289
Loading
Loading
Loading
Pipeline #1313678 passed with stages
in 5 minutes and 48 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment