[chronojump] Webcam capture framerate can have decimal point as . and not be always 30
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Webcam capture framerate can have decimal point as . and not be always 30
- Date: Thu, 19 Sep 2019 10:58:09 +0000 (UTC)
commit 9597e8bde2e36c7366e1a664364f532f28b7f8bf
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Sep 19 12:57:38 2019 +0200
Webcam capture framerate can have decimal point as . and not be always 30
src/webcam/webcamFfmpeg.cs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/webcam/webcamFfmpeg.cs b/src/webcam/webcamFfmpeg.cs
index e73fcb06..6ce8202f 100644
--- a/src/webcam/webcamFfmpeg.cs
+++ b/src/webcam/webcamFfmpeg.cs
@@ -340,7 +340,9 @@ public class WebcamFfmpeg : Webcam
parameters.Insert (i ++, "avfoundation");
parameters.Insert (i ++, "-framerate");
- if(videoDeviceFramerate != "" && Util.IsNumber(videoDeviceFramerate, false))
+ //on mac and linux framerate comes on all languages with . as decimal separator
+ //if(videoDeviceFramerate != "" && Util.IsNumber(videoDeviceFramerate, false))
+ if(videoDeviceFramerate != "")
parameters.Insert (i ++, videoDeviceFramerate);
else
parameters.Insert (i ++, "30");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]