pluginloader-win32: Increase plugin loading timeout

Some hardware plugin loading might take more than 10sec under
full CPU load condition

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5545>
This commit is contained in:
Seungha Yang 2023-10-25 00:40:22 +09:00 committed by GStreamer Marge Bot
parent 2aa841e74b
commit b545bd2ac5

View file

@ -415,7 +415,7 @@ gst_plugin_loader_try_helper (GstPluginLoader * self, gchar * location)
/* Do version check */ /* Do version check */
loader->expected_pkt = PACKET_VERSION; loader->expected_pkt = PACKET_VERSION;
win32_plugin_loader_write_packet_async (loader, PACKET_VERSION, 0, NULL, 0); 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"); GST_ERROR ("Version check failed");
goto kill_child; goto kill_child;
} }
@ -965,7 +965,7 @@ gst_plugin_loader_server_load (GstPluginLoader * self,
return FALSE; return FALSE;
} }
return win32_plugin_loader_run (loader, 10000); return win32_plugin_loader_run (loader, 60000);
} }
/* *INDENT-OFF* */ /* *INDENT-OFF* */
@ -1192,7 +1192,7 @@ gst_plugin_loader_free (GstPluginLoader * self)
GST_LOG ("Sending EXIT packet to client"); GST_LOG ("Sending EXIT packet to client");
win32_plugin_loader_write_packet_async (loader, PACKET_EXIT, 0, NULL, 0); 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); gst_plugin_loader_cleanup_child (self);