pluginloader: disable external plugin loader on Windows until it is ported properly

See #597662.
This commit is contained in:
Andoni Morales Alastruey 2010-01-08 20:56:18 +01:00 committed by Tim-Philipp Müller
parent 087aa6ced4
commit 9909d3312f
2 changed files with 11 additions and 1 deletions

View file

@ -32,7 +32,11 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>
#else
#define fsync(fd) _commit(fd)
#include <io.h>
#endif #endif
#include <errno.h> #include <errno.h>
#include <gst/gstconfig.h> #include <gst/gstconfig.h>
@ -428,7 +432,7 @@ gboolean
_gst_plugin_loader_client_run () _gst_plugin_loader_client_run ()
{ {
GstPluginLoader *l; GstPluginLoader *l;
int dup_fd; int dup_fd = 0;
l = plugin_loader_new (NULL); l = plugin_loader_new (NULL);
if (l == NULL) if (l == NULL)

View file

@ -1003,6 +1003,12 @@ gst_registry_scan_plugin_file (GstRegistryScanContext * context,
gboolean changed = FALSE; gboolean changed = FALSE;
GstPlugin *newplugin = NULL; GstPlugin *newplugin = NULL;
#ifdef G_OS_WIN32
/* Disable external plugin loader on Windows until it is ported properly. */
context->helper_state = REGISTRY_SCAN_HELPER_DISABLED;
#endif
/* Have a plugin to load - see if the scan-helper needs starting */ /* Have a plugin to load - see if the scan-helper needs starting */
if (context->helper_state == REGISTRY_SCAN_HELPER_NOT_STARTED) { if (context->helper_state == REGISTRY_SCAN_HELPER_NOT_STARTED) {
GST_DEBUG ("Starting plugin scanner for file %s", filename); GST_DEBUG ("Starting plugin scanner for file %s", filename);