From 71d7cf07a108680e4bd746897924fcd9a925f5df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Wed, 30 Jun 2021 13:27:39 -0300 Subject: [PATCH] VideoManager: Add missing Q_UNUSED for arguments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- src/VideoManager/VideoManager.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/VideoManager/VideoManager.cc b/src/VideoManager/VideoManager.cc index eb66b18..50b3970 100644 --- a/src/VideoManager/VideoManager.cc +++ b/src/VideoManager/VideoManager.cc @@ -732,6 +732,10 @@ VideoManager::_updateVideoUri(unsigned id, const QString& uri) void VideoManager::_restartVideo(unsigned id) { +#if !defined(QGC_GST_STREAMING) + Q_UNUSED(id); +#endif + if (qgcApp()->runningUnitTests()) { return; } @@ -781,6 +785,8 @@ VideoManager::_startReceiver(unsigned id) _videoReceiver[id]->start(_videoUri[id], timeout, _lowLatencyStreaming[id] ? -1 : 0); } } +#else + Q_UNUSED(id); #endif } @@ -794,6 +800,8 @@ VideoManager::_stopReceiver(unsigned id) } else if (_videoReceiver[id] != nullptr) { _videoReceiver[id]->stop(); } +#else + Q_UNUSED(id); #endif }