1From 7b0b6cf8730cb8345df62fea67a235c1e03ca913 Mon Sep 17 00:00:00 2001
2From: Jeffy Chen <jeffy.chen@rock-chips.com>
3Date: Wed, 25 Nov 2020 10:51:12 +0800
4Subject: [PATCH 13/33] waylandsink: Drop frame when window not ready
5
6Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
7---
8 ext/wayland/gstwaylandsink.c | 5 +++++
9 1 file changed, 5 insertions(+)
10
11diff --git a/ext/wayland/gstwaylandsink.c b/ext/wayland/gstwaylandsink.c
12index 6647123..25694cf 100644
13--- a/ext/wayland/gstwaylandsink.c
14+++ b/ext/wayland/gstwaylandsink.c
15@@ -881,10 +881,15 @@ render:
16
17 no_window_size:
18   {
19+    /* HACK: Drop frame when window not ready */
20+#if 0
21     GST_ELEMENT_ERROR (sink, RESOURCE, WRITE,
22         ("Window has no size set"),
23         ("Make sure you set the size after calling set_window_handle"));
24     ret = GST_FLOW_ERROR;
25+#else
26+    GST_WARNING_OBJECT (sink, "Window has no size set");
27+#endif
28     goto done;
29   }
30 no_buffer:
31--
322.20.1
33
34