[longomatch] Put a nicer name on the capture device selector for blackmagic devices.



commit d74ef1ab0677b6f466e01e47313a839a59c16215
Author: Josep Torra <n770galaxy gmail com>
Date:   Fri Apr 24 14:50:32 2015 +0200

    Put a nicer name on the capture device selector for blackmagic devices.

 LongoMatch.Multimedia/Utils/Devices.cs |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.Multimedia/Utils/Devices.cs b/LongoMatch.Multimedia/Utils/Devices.cs
index a152a9e..a8814b8 100644
--- a/LongoMatch.Multimedia/Utils/Devices.cs
+++ b/LongoMatch.Multimedia/Utils/Devices.cs
@@ -75,6 +75,10 @@ namespace LongoMatch.Multimedia.Utils
                                        device.DeviceType = CaptureSourceType.System;
                                        device.SourceElement = source;
                                        device.ID = GLib.Marshaller.PtrToStringGFree 
(lgm_device_get_device_name (device_raw));
+                                       if (source == "decklinkvideosrc") {
+                                               device.ID = "Blackmagic" + device.ID;
+                                       }
+
                                        GLib.List formats_raw = new GLib.List (lgm_device_get_formats 
(device_raw),
                                                                        typeof(IntPtr), false, false);
                                        foreach (IntPtr format_raw in formats_raw) {


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