glwindow/winrt: Increase timeout value to 15 seconds
authorSeungha Yang <seungha@centricular.com>
Thu, 30 Jul 2020 10:16:06 +0000 (19:16 +0900)
committerSeungha Yang <seungha@centricular.com>
Thu, 30 Jul 2020 12:05:54 +0000 (21:05 +0900)
5 seconds might not be enough value for timeout in case an application
is running on a device with very limited computing power.
Note that ANGLE uses 10 seconds timeout value. So even if a timeout
happens here, it's also ANGLE's timeout condition as well
(meaning that bad things will happen either way)

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/769>

gst-libs/gst/gl/winrt/gstglwindow_winrt_egl.cpp

index e37d53b..5b822c6 100644 (file)
@@ -48,8 +48,13 @@ using namespace ABI::Windows::Graphics;
 
 #define GST_CAT_DEFAULT gst_gl_window_debug
 
-/* timeout to wait busy UI thread */
-#define DEFAULT_ASYNC_TIMEOUT (5 * 1000)
+/* timeout to wait busy UI thread, 15 seconds */
+/* XXX: If UI is not responsible in this amount of time, that means
+ * there were something wrong situation at the application side.
+ * Note that ANGLE uses 10 seconds timeout value, so even if a timeout happens
+ * on our side, it would be a timeout condition of ANGLE as well.
+ */
+#define DEFAULT_ASYNC_TIMEOUT (15 * 1000)
 
 static void gst_gl_window_winrt_egl_on_resize (GstGLWindow * window,
     guint width, guint height);