[chronojump] Added parse logs on webcamFfmpeg windows discovery
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Added parse logs on webcamFfmpeg windows discovery
- Date: Wed, 19 Sep 2018 16:38:36 +0000 (UTC)
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]