aboutsummaryrefslogtreecommitdiffstats
path: root/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-04-21 17:37:26 -0700
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2020-04-23 11:05:13 +0200
commit5f15670092a4d505f91df22fdb70df4ed066d1d8 (patch)
treecc82071b3aa0fb0e64cb29e5d84aaefd96dc0fab /utils/v4l2-ctl/v4l2-ctl-streaming.cpp
parenta0081becafb912c10478e85651ede35a49465028 (diff)
utils: fix float equal warning
Found with -Wfloat-equal Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'utils/v4l2-ctl/v4l2-ctl-streaming.cpp')
-rw-r--r--utils/v4l2-ctl/v4l2-ctl-streaming.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/v4l2-ctl/v4l2-ctl-streaming.cpp b/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
index 663d0254..066a336a 100644
--- a/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
+++ b/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
@@ -154,7 +154,7 @@ void fps_timestamps::determine_field(int fd, unsigned type)
bool fps_timestamps::add_ts(double ts_secs, unsigned sequence, unsigned field)
{
- if (ts_secs == 0) {
+ if (ts_secs <= 0) {
struct timespec ts_cur;
clock_gettime(CLOCK_MONOTONIC, &ts_cur);

Privacy Policy