diff options
author | Seungha Yang <seungha@centricular.com> | 2020-07-30 19:16:06 +0900 |
---|---|---|
committer | Seungha Yang <seungha@centricular.com> | 2020-07-30 21:05:54 +0900 |
commit | c2b9be5c9455aa49c51d01fd21636275c20da449 (patch) | |
tree | 6d60666662b98a3f6092924098cd3355456ac9ad | |
parent | f5a02639e1ae0f8e828d47a8788d4fc886265782 (diff) | |
download | gstreamer-plugins-base-c2b9be5c9455aa49c51d01fd21636275c20da449.tar.gz |
glwindow/winrt: Increase timeout value to 15 seconds
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>
-rw-r--r-- | gst-libs/gst/gl/winrt/gstglwindow_winrt_egl.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gst-libs/gst/gl/winrt/gstglwindow_winrt_egl.cpp b/gst-libs/gst/gl/winrt/gstglwindow_winrt_egl.cpp index e37d53bce..5b822c641 100644 --- a/gst-libs/gst/gl/winrt/gstglwindow_winrt_egl.cpp +++ b/gst-libs/gst/gl/winrt/gstglwindow_winrt_egl.cpp @@ -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); |