diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-11-15 07:26:27 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-11-15 07:26:27 -0200 |
commit | e73ea31dcd5884251424ccbf13a0d515f8914c27 (patch) | |
tree | 77a4af4d5d0cfc3bdae1d563d1666d481defe333 | |
parent | f94c97c9fc27ae2ceac780426712f021eb464504 (diff) | |
download | mediapointer-dvb-s2-e73ea31dcd5884251424ccbf13a0d515f8914c27.tar.gz mediapointer-dvb-s2-e73ea31dcd5884251424ccbf13a0d515f8914c27.tar.bz2 |
Fix compiation bug on qv4l2
From: Mauro Carvalho Chehab <mchehab@infradead.org>
sys/time.h is required to include videodev2.h at userspace.
thanks to audetto@tiscalli.it for pointing it.
Also fixed a warning at a printf.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r-- | v4l2-apps/util/qv4l2/general-tab.cpp | 2 | ||||
-rw-r--r-- | v4l2-apps/util/qv4l2/general-tab.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/v4l2-apps/util/qv4l2/general-tab.cpp b/v4l2-apps/util/qv4l2/general-tab.cpp index a19cf911b..87a0f520d 100644 --- a/v4l2-apps/util/qv4l2/general-tab.cpp +++ b/v4l2-apps/util/qv4l2/general-tab.cpp @@ -295,7 +295,7 @@ void GeneralTab::updateStandard() tvStandard->setCurrentItem(vs.index); what.sprintf("TV Standard (0x%llX)\n" "Frame period: %f (%d/%d)\n" - "Frame lines: %d\n", std, + "Frame lines: %d\n", (long long int)std, (double)vs.frameperiod.numerator / vs.frameperiod.denominator, vs.frameperiod.numerator, vs.frameperiod.denominator, vs.framelines); diff --git a/v4l2-apps/util/qv4l2/general-tab.h b/v4l2-apps/util/qv4l2/general-tab.h index 44003fd40..110632014 100644 --- a/v4l2-apps/util/qv4l2/general-tab.h +++ b/v4l2-apps/util/qv4l2/general-tab.h @@ -21,6 +21,7 @@ #ifndef GENERAL_TAB_H #define GENERAL_TAB_H +#include <sys/time.h> #include <linux/videodev2.h> #include <qgrid.h> |