[chronojump] More on last commits
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] More on last commits
- Date: Thu, 20 Sep 2018 12:27:06 +0000 (UTC)
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]