From: Christophe Priouzeau <christophe.priouzeau@st.com>
Date: Thu, 19 Mar 2020 12:15:19 +0100
Subject: [PATCH 1/4] Allow to get hdmi output with several outputs
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

If an ouput fail to be attach or enable then this output must be only
destroyed and an error doesn't be re which detach & destroy
all other output.

Signed-off-by: Yannick Fertré <yannick.fertre@st.com>
---
 compositor/main.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/compositor/main.c b/compositor/main.c
index 322f2ff..055eed3 100644
--- a/compositor/main.c
+++ b/compositor/main.c
@@ -2246,8 +2246,14 @@ drm_process_layoutput(struct wet_compositor *wet, struct wet_layoutput *lo)
 			return -1;
 
 		if (drm_try_attach_enable(output->output, lo) < 0) {
+			/*
+			 * if a wet_ouput fail to be attach or enable
+			 * then this output must be destroyed
+			 * but don't return an error which dettatch & destroy
+			 * all other output.
+			 */
 			wet_output_destroy(output);
-			return -1;
+			//return -1;
 		}
 	}

