[vlc-commits] doc: QtGl: add Q_UNUSED for unused parameters
Alexandre Janniaux
git at videolan.org
Thu Nov 12 15:47:57 CET 2020
vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Mon Nov 9 16:51:41 2020 +0100| [ce256c95008fc935d1fe2beef77fea4cd7d630af] | committer: Alexandre Janniaux
doc: QtGl: add Q_UNUSED for unused parameters
cfg, out, width and height are needed when the user want to adapt the
aspect ratio of the video on the rendering surface, but the sample
doesn't show this, so silence the warnings anyway.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ce256c95008fc935d1fe2beef77fea4cd7d630af
---
doc/libvlc/QtGL/qtvlcwidget.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/doc/libvlc/QtGL/qtvlcwidget.cpp b/doc/libvlc/QtGL/qtvlcwidget.cpp
index 761c6d7cf1..e33f6a6c08 100644
--- a/doc/libvlc/QtGL/qtvlcwidget.cpp
+++ b/doc/libvlc/QtGL/qtvlcwidget.cpp
@@ -96,6 +96,9 @@ public:
static bool setup(void** data, const libvlc_video_setup_device_cfg_t *cfg,
libvlc_video_setup_device_info_t *out)
{
+ Q_UNUSED(cfg);
+ Q_UNUSED(out);
+
if (!QOpenGLContext::supportsThreadedOpenGL())
return false;
@@ -355,5 +358,7 @@ void QtVLCWidget::paintGL()
void QtVLCWidget::resizeGL(int w, int h)
{
+ Q_UNUSED(w);
+ Q_UNUSED(h);
/* TODO */
}
More information about the vlc-commits
mailing list