  #ifdef GST_CA_CERTIFICATES_FROM_ENV
    anchor_file = g_getenv ("CA_CERTIFICATES");
  #endif
+   db = g_tls_file_database_new (anchor_file, error);
+ 
+-#ifdef HAVE_DLADDR
++#if defined(HAVE_DLADDR) || defined(G_OS_WIN32)
+   g_free (free_me);
+ #endif
+   return db;
 -- 
-2.6.3.windows.1
+2.10.2
 

+          {
+            module_path = g_win32_get_package_installation_directory_of_module (module);
+            if (module_path)
+              anchor_file = g_build_filename (module_path, "etc", "ssl", "certs", "ca-certificates.crt", NULL);
+            g_free (module_path);
+          }
+      }

From 6f3db1bb19c5f06dda25f13aa1e1a381233f3fd2 Mon Sep 17 00:00:00 2001
From: Sebastian Droege <sebastian@centricular.com>
Date: Tue, 1 Nov 2016 19:48:12 +0000
Subject: [PATCH 4/4] gtlsbackend-gnutls: Get anchor file relative to libgio on
 Windows

---
 tls/gnutls/gtlsbackend-gnutls.c | 24 ++++++++++++++++++++++--
 1 file changed, 22 insertions(+), 2 deletions(-)

diff --git a/tls/gnutls/gtlsbackend-gnutls.c b/tls/gnutls/gtlsbackend-gnutls.c
index 1cf9127..8b281e5 100644
--- a/tls/gnutls/gtlsbackend-gnutls.c
+++ b/tls/gnutls/gtlsbackend-gnutls.c
@@ -38,6 +38,10 @@
