[longomatch] Add back the GST_PLUGIN_PATH env in win32



commit 23583edc94862260418ff6d366abf4ba1caa765a
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sun Apr 17 21:35:53 2011 +0200

    Add back the GST_PLUGIN_PATH env in win32

 LongoMatch/Main.cs |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch/Main.cs b/LongoMatch/Main.cs
index dda518f..31d05fd 100644
--- a/LongoMatch/Main.cs
+++ b/LongoMatch/Main.cs
@@ -176,8 +176,10 @@ namespace LongoMatch
 		private static void SetupBaseDir() {
 			string home;
 			
-			if (Environment.OSVersion.Platform == PlatformID.Win32NT)
+			if (Environment.OSVersion.Platform == PlatformID.Win32NT) {
 				baseDirectory = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory,"../");
+				Environment.SetEnvironmentVariable("GST_PLUGIN_PATH",RelativeToPrefix("lib\\gstreamer-0.10"));
+			}
 			else
 				baseDirectory = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory,"../../");
 			



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