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

View file

@ -1003,6 +1003,12 @@ gst_registry_scan_plugin_file (GstRegistryScanContext * context,
gboolean changed = FALSE;
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 */
if (context->helper_state == REGISTRY_SCAN_HELPER_NOT_STARTED) {
GST_DEBUG ("Starting plugin scanner for file %s", filename);