[chronojump] Added parse logs on webcamFfmpeg windows discovery



commit bad5bbd856b48024e9e006e8235eb51f3e5bf63d
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Sep 19 18:37:49 2018 +0200

    Added parse logs on webcamFfmpeg windows discovery

 src/webcamFfmpeg.cs | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/src/webcamFfmpeg.cs b/src/webcamFfmpeg.cs
index 0efeb721..537d6ab2 100644
--- a/src/webcamFfmpeg.cs
+++ b/src/webcamFfmpeg.cs
@@ -258,6 +258,8 @@ public static class WebcamFfmpegGetDevicesWindows
 
        private static List<string> parse(string devicesOutput)
        {
+               LogB.Information("Called parse");
+               LogB.Information("stdout: " + devicesOutput);
                //https://stackoverflow.com/a/1547483
                string[] lines = devicesOutput.Split(
                                new[] { Environment.NewLine },
@@ -267,8 +269,12 @@ public static class WebcamFfmpegGetDevicesWindows
                List<string> parsedList = new List<string>();
                foreach(string l in lines)
                {
+                       LogB.Information("line: " + l);
                        foreach(Match match in Regex.Matches(l, "\"([^\"]*)\""))
+                       {
+                               LogB.Information("add match: " + match.ToString());
                                parsedList.Add(match.ToString());
+                       }
                }
 
                return parsedList;


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