[chronojump] More on last commits



commit 1d229f54d6b132e365f282af9f4df73d119bb81b
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Sep 20 14:26:37 2018 +0200

    More on last commits

 src/webcamFfmpeg.cs | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/webcamFfmpeg.cs b/src/webcamFfmpeg.cs
index b82ecbcc..36eaf521 100644
--- a/src/webcamFfmpeg.cs
+++ b/src/webcamFfmpeg.cs
@@ -302,8 +302,10 @@ public static class WebcamFfmpegGetDevicesWindows
                        LogB.Information("line: " + l);
                        foreach(Match match in Regex.Matches(l, "\"([^\"]*)\""))
                        {
-                               LogB.Information("add match: " + match.ToString());
-                               parsedList.Add(match.ToString());
+                               //remove quotes from the match (at beginning and end)
+                               string s = Util.RemoveChar(match.ToString(), '"');
+                               LogB.Information("add match: " + s);
+                               parsedList.Add(s);
                        }
 
                        //after the list of video devices comes the list of audio devices, skip it


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