output:don't push surface to remote if receiver not ready 63/22963/1 8.99.1 8.99.2 8.99.3 8.99.4 8.99.5 9.99.1 9.99.2 9.99.3 9.99.4 icefish/8.99.1 icefish/8.99.2 icefish/8.99.3 icefish/8.99.4 icefish/8.99.5 icefish_8.99.1 icefish_8.99.2 icefish_8.99.3 icefish_8.99.4 icefish_8.99.5 jellyfish/9.99.1 jellyfish/9.99.2 jellyfish/9.99.3 jellyfish/9.99.4 jellyfish_9.99.1 jellyfish_9.99.2 jellyfish_9.99.3 jellyfish_9.99.4
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:29:32 +0000 (02:29 +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) {