[chronojump] A webcam can be configured without framerate
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] A webcam can be configured without framerate
- Date: Mon, 4 Nov 2019 15:14:24 +0000 (UTC)
commit 778d584238ae2c8110bca8a84dbea943d0f52212
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Nov 4 16:13:00 2019 +0100
A webcam can be configured without framerate
src/preferences.cs | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/preferences.cs b/src/preferences.cs
index 3e4acdbd..1b9eaa77 100644
--- a/src/preferences.cs
+++ b/src/preferences.cs
@@ -327,8 +327,11 @@ public class Preferences
public bool IsVideoConfigured()
{
- return (videoDevice != "" && videoDevicePixelFormat != "" &&
- videoDeviceResolution != "" && videoDeviceFramerate != "");
+ return (videoDevice != "" &&
+ videoDevicePixelFormat != "" &&
+ videoDeviceResolution != "" //&&
+ //videoDeviceFramerate != "" //a really old Creative camera on a Linux
machine does not return the framerate, so allow to be configured without it
+ );
}
~Preferences() {}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]