[longomatch] Fix loading of Gst plugins with dependencies in Windows



commit 3fdb02cda8518dfeea876397839c143dc981cc58
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Wed Oct 22 14:16:45 2014 +0200

    Fix loading of Gst plugins with dependencies in Windows

 .../GStreamerRestricted.cs                         |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.Plugins.GStreamer/GStreamerRestricted.cs 
b/LongoMatch.Plugins.GStreamer/GStreamerRestricted.cs
index 5252749..9927d6f 100644
--- a/LongoMatch.Plugins.GStreamer/GStreamerRestricted.cs
+++ b/LongoMatch.Plugins.GStreamer/GStreamerRestricted.cs
@@ -49,6 +49,10 @@ namespace LongoMatch.Plugins.GStreamer
                public void RegisterPlugins ()
                {
                        string gstdir = Path.Combine (Config.PluginsDir, "gstreamer-0.10");
+                       if (Environment.OSVersion.Platform == PlatformID.Win32NT) {
+                               Environment.SetEnvironmentVariable ("PATH",
+                                                                   Environment.GetEnvironmentVariable 
("PATH") + ";" + gstdir);
+                       }
                        Log.Information ("Registering plugins in directory " + gstdir);
                        IntPtr p = GLib.Marshaller.StringToPtrGStrdup (gstdir);
                        IntPtr reg = gst_registry_get_default ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]