pluginloader: disable external plugin loader on Windows until it is ported properly
authorAndoni Morales Alastruey <ylatuya@gmail.com>
Fri, 8 Jan 2010 19:56:18 +0000 (20:56 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 20 Jan 2010 01:48:56 +0000 (01:48 +0000)
See #597662.

gst/gstpluginloader.c
gst/gstregistry.c

index b4b3d60..b987c89 100644 (file)
 #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)
index 9e44031..a4048da 100644 (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);