diff options
author | Samuli Piippo <samuli.piippo@qt.io> | 2023-09-18 15:08:12 +0300 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-09-19 14:08:22 +0000 |
commit | d66a04c40ad80d98747b2c67636efa972767a869 (patch) | |
tree | 32ba8b77d849136f84c9aeb1495e8a97aede355f | |
parent | da7dd8fce77f9b8aee109428a2ebf5ded07c9b80 (diff) |
ffmpeg: add include for timeval
Fix build issue with missing include:
src/plugins/multimedia/ffmpeg/qv4l2camera_p.h:149:5: error: 'timeval' does not name a type
| 149 | timeval firstFrameTime = {-1, -1};
| | ^~~~~~~
Change-Id: Iaca7514633cdaf439f5f7960cc5191f106c3f15a
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
(cherry picked from commit 79533b4b45308ca0a345b8ee3e5b1628bb52a6bc)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 551ad43653ee9ab207be888242900bcfd935ce64)
-rw-r--r-- | src/plugins/multimedia/ffmpeg/qv4l2camera_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/multimedia/ffmpeg/qv4l2camera_p.h b/src/plugins/multimedia/ffmpeg/qv4l2camera_p.h index 634f59bb4..6d688bba3 100644 --- a/src/plugins/multimedia/ffmpeg/qv4l2camera_p.h +++ b/src/plugins/multimedia/ffmpeg/qv4l2camera_p.h @@ -23,6 +23,8 @@ #include <qsocketnotifier.h> #include <qmutex.h> +#include <sys/time.h> + QT_BEGIN_NAMESPACE class QV4L2CameraDevices : public QPlatformVideoDevices |