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>
This commit is contained in:
Seungha Yang 2020-07-30 19:16:06 +09:00
parent f5a02639e1
commit c2b9be5c94

View 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);