[longomatch] Use our own function to detect the running platform.
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Use our own function to detect the running platform.
- Date: Mon, 27 Apr 2015 22:21:32 +0000 (UTC)
commit d95b9a5396d71bcbef25d2ca8afa653342bc4035
Author: Josep Torra <n770galaxy gmail com>
Date: Fri Apr 24 13:12:36 2015 +0200
Use our own function to detect the running platform.
LongoMatch.Multimedia/Utils/Devices.cs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.Multimedia/Utils/Devices.cs b/LongoMatch.Multimedia/Utils/Devices.cs
index b033307..a152a9e 100644
--- a/LongoMatch.Multimedia/Utils/Devices.cs
+++ b/LongoMatch.Multimedia/Utils/Devices.cs
@@ -49,9 +49,9 @@ namespace LongoMatch.Multimedia.Utils
static public List<Device> ListVideoDevices ()
{
string[] devices;
- if (Environment.OSVersion.Platform == PlatformID.MacOSX)
+ if (LongoMatch.Core.Common.Utils.RunningPlatform () == PlatformID.MacOSX)
devices = devices_osx;
- else if (Environment.OSVersion.Platform == PlatformID.Win32NT)
+ else if (LongoMatch.Core.Common.Utils.RunningPlatform () == PlatformID.Win32NT)
devices = devices_win;
else
devices = devices_lin;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]