From b545bd2ac53e5d8b7759f94b151b194ed43f1a91 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Wed, 25 Oct 2023 00:40:22 +0900 Subject: [PATCH] pluginloader-win32: Increase plugin loading timeout Some hardware plugin loading might take more than 10sec under full CPU load condition Part-of: --- subprojects/gstreamer/gst/gstpluginloader-win32.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subprojects/gstreamer/gst/gstpluginloader-win32.c b/subprojects/gstreamer/gst/gstpluginloader-win32.c index d7ace0201c..359c3760fd 100644 --- a/subprojects/gstreamer/gst/gstpluginloader-win32.c +++ b/subprojects/gstreamer/gst/gstpluginloader-win32.c @@ -415,7 +415,7 @@ gst_plugin_loader_try_helper (GstPluginLoader * self, gchar * location) /* Do version check */ loader->expected_pkt = PACKET_VERSION; win32_plugin_loader_write_packet_async (loader, PACKET_VERSION, 0, NULL, 0); - if (!win32_plugin_loader_run (loader, 5000)) { + if (!win32_plugin_loader_run (loader, 10000)) { GST_ERROR ("Version check failed"); goto kill_child; } @@ -965,7 +965,7 @@ gst_plugin_loader_server_load (GstPluginLoader * self, return FALSE; } - return win32_plugin_loader_run (loader, 10000); + return win32_plugin_loader_run (loader, 60000); } /* *INDENT-OFF* */ @@ -1192,7 +1192,7 @@ gst_plugin_loader_free (GstPluginLoader * self) GST_LOG ("Sending EXIT packet to client"); win32_plugin_loader_write_packet_async (loader, PACKET_EXIT, 0, NULL, 0); - win32_plugin_loader_run (loader, 5000); + win32_plugin_loader_run (loader, 10000); } gst_plugin_loader_cleanup_child (self);