Browse Source

VideoManager: Add missing Q_UNUSED for arguments

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
QGC4.4
Patrick José Pereira 4 years ago committed by Don Gagne
parent
commit
71d7cf07a1
  1. 8
      src/VideoManager/VideoManager.cc

8
src/VideoManager/VideoManager.cc

@ -732,6 +732,10 @@ VideoManager::_updateVideoUri(unsigned id, const QString& uri) @@ -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) @@ -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) @@ -794,6 +800,8 @@ VideoManager::_stopReceiver(unsigned id)
} else if (_videoReceiver[id] != nullptr) {
_videoReceiver[id]->stop();
}
#else
Q_UNUSED(id);
#endif
}

Loading…
Cancel
Save