[vlc-devel] [PATCH 4/5] doc: QtGl: add Q_UNUSED for unused parameters

Alexandre Janniaux ajanni at videolabs.io
Mon Nov 9 18:15:02 CET 2020


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.
---
 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 */
 }
-- 
2.29.2



More information about the vlc-devel mailing list