output:don't push surface to remote if receiver not ready 62/22962/2 halibut 8.0.4 8.0.5 8.0.6 halibut/8.0.4 halibut/8.0.5 halibut/8.0.6 halibut_8.0.4 halibut_8.0.5 halibut_8.0.6
authorVeeresh Kadasani <external.vkadasani@jp.adit-jv.com>
Mon, 18 Nov 2019 02:14:56 +0000 (11:14 +0900)
committerVeeresh Kadasani <external.vkadasani@jp.adit-jv.com>
Mon, 18 Nov 2019 02:28:51 +0000 (02:28 +0000)
Bug-AGL:SPEC-2965

If a surface is put on the transmitter output
without starting the waltham-receiver there was
a crash because of null pointer access.

Change-Id: Iec331e0077a59397cd579923bdabe5f906c2fba1
Signed-off-by: Veeresh Kadasani <external.vkadasani@jp.adit-jv.com>
waltham-transmitter/transmitter-plugin/output.c

index 853889b..df834a5 100644 (file)
@@ -191,7 +191,7 @@ transmitter_output_repaint(struct weston_output *base,
        if (wl_list_empty(&compositor->view_list))
                goto out;
 
-       if (remote->status == WESTON_TRANSMITTER_CONNECTION_DISCONNECTED)
+       if (remote->status != WESTON_TRANSMITTER_CONNECTION_READY)
                goto out;
 
        wl_list_for_each_reverse(view, &compositor->view_list, link) {