From f860afdbd4d5b828125798f958fe731cb32b49d1 Mon Sep 17 00:00:00 2001 From: lukeIam <2lukeiam@gmail.com> Date: Sat, 19 Dec 2015 14:33:45 +0100 Subject: [PATCH] Fallback to local GSTREAMER lib if the GSTREAMER EnvironmentVariable exists but the targeted folder does not exists --- .../Lib/Sound/Playback/GstreamerSharp/CGstreamerSharpAudio.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Vocaluxe/Lib/Sound/Playback/GstreamerSharp/CGstreamerSharpAudio.cs b/Vocaluxe/Lib/Sound/Playback/GstreamerSharp/CGstreamerSharpAudio.cs index 683e3d75..73c624f8 100644 --- a/Vocaluxe/Lib/Sound/Playback/GstreamerSharp/CGstreamerSharpAudio.cs +++ b/Vocaluxe/Lib/Sound/Playback/GstreamerSharp/CGstreamerSharpAudio.cs @@ -37,7 +37,7 @@ namespace Vocaluxe.Lib.Sound.Playback.GstreamerSharp #endif string gstreamerEnvVar = Environment.GetEnvironmentVariable(varName, EnvironmentVariableTarget.User); string dllDirectory; - if (gstreamerEnvVar == null) + if (gstreamerEnvVar == null || !Directory.Exists(gstreamerEnvVar)) { #if ARCH_X86 dllDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "libs\\unmanaged\\gstreamer86\\bin\\");