[banshee] windows: move the env var settings to the gst# backend



commit 1fc9a6bdb96d1a42c75b114722562fc815e14361
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Fri Jan 28 11:08:55 2011 -0600

    windows: move the env var settings to the gst# backend

 .../Banshee.GStreamer/Banshee.GStreamer/Service.cs |   21 --------------------
 .../Banshee.GStreamerSharp/PlayerEngine.cs         |   19 ++++++++++++++++++
 2 files changed, 19 insertions(+), 21 deletions(-)
---
diff --git a/src/Backends/Banshee.GStreamer/Banshee.GStreamer/Service.cs b/src/Backends/Banshee.GStreamer/Banshee.GStreamer/Service.cs
index 6eb1df2..ef07155 100644
--- a/src/Backends/Banshee.GStreamer/Banshee.GStreamer/Service.cs
+++ b/src/Backends/Banshee.GStreamer/Banshee.GStreamer/Service.cs
@@ -59,27 +59,6 @@ namespace Banshee.GStreamer
                 native_log_handler = new BansheeLogHandler (NativeLogHandler);
             }
 
-            // Setup the gst plugins/registry paths if running Windows
-            if (PlatformDetection.IsWindows) {
-                var gst_paths = new string [] {
-                    "gst-plugins"
-                };
-
-                Environment.SetEnvironmentVariable ("GST_PLUGIN_PATH", String.Join (";", gst_paths));
-                Environment.SetEnvironmentVariable ("GST_PLUGIN_SYSTEM_PATH", "");
-                Environment.SetEnvironmentVariable ("GST_DEBUG", "1");
-
-                string registry = "registry.bin";
-                if (!System.IO.File.Exists (registry)) {
-                    System.IO.File.Create (registry).Close ();
-                }
-
-                Environment.SetEnvironmentVariable ("GST_REGISTRY", registry);
-
-                //System.Environment.SetEnvironmentVariable ("GST_REGISTRY_FORK", "no");
-                Log.DebugFormat ("GST_PLUGIN_PATH = {0}", Environment.GetEnvironmentVariable ("GST_PLUGIN_PATH"));
-            }
-
             gstreamer_initialize (debugging, native_log_handler);
 
             var profile_manager = ServiceManager.MediaProfileManager;
diff --git a/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/PlayerEngine.cs b/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/PlayerEngine.cs
index 65c5794..21449ef 100644
--- a/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/PlayerEngine.cs
+++ b/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/PlayerEngine.cs
@@ -57,6 +57,25 @@ namespace Banshee.GStreamerSharp
         public PlayerEngine ()
         {
             Console.WriteLine ("Gst# PlayerEngine ctor - completely experimental, still a WIP");
+
+            // Setup the gst plugins/registry paths if running Windows
+            if (PlatformDetection.IsWindows) {
+                var gst_paths = new string [] { "gst-plugins" };
+                Environment.SetEnvironmentVariable ("GST_PLUGIN_PATH", String.Join (";", gst_paths));
+                Environment.SetEnvironmentVariable ("GST_PLUGIN_SYSTEM_PATH", "");
+                Environment.SetEnvironmentVariable ("GST_DEBUG", "1");
+
+                string registry = "registry.bin";
+                if (!System.IO.File.Exists (registry)) {
+                    System.IO.File.Create (registry).Close ();
+                }
+
+                Environment.SetEnvironmentVariable ("GST_REGISTRY", registry);
+
+                //System.Environment.SetEnvironmentVariable ("GST_REGISTRY_FORK", "no");
+                Log.DebugFormat ("GST_PLUGIN_PATH = {0}", Environment.GetEnvironmentVariable ("GST_PLUGIN_PATH"));
+            }
+
             Gst.Application.Init ();
             pipeline = new Pipeline ();
             playbin = new PlayBin2 ();



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