[chronojump] More fixes on windows ffmpeg call



commit 462b80dfff5e1fe6ec90eb5b58071d3a7e27897b
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri Sep 21 11:44:41 2018 +0200

    More fixes on windows ffmpeg call

 src/webcamFfmpeg.cs | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/webcamFfmpeg.cs b/src/webcamFfmpeg.cs
index ecf8748b..345846a2 100644
--- a/src/webcamFfmpeg.cs
+++ b/src/webcamFfmpeg.cs
@@ -312,8 +312,9 @@ public static class WebcamFfmpegGetDevicesWindows
                        LogB.Information("line: " + l);
                        foreach(Match match in Regex.Matches(l, "\"([^\"]*)\""))
                        {
-                               //remove quotes from the match (at beginning and end)
-                               string s = Util.RemoveChar(match.ToString(), '"');
+                               //remove quotes from the match (at beginning and end) to add it in SQL
+                               string s = match.ToString().Substring(1, match.ToString().Length -2);
+
                                LogB.Information("add match: " + s);
                                parsedList.Add(s);
                        }


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