qtglrenderer.cc: Fix -Wformat-security warning
authorRaul Tambre <raul@tambre.ee>
Fri, 15 May 2020 06:07:25 +0000 (06:07 +0000)
committerRaul Tambre <raul@tambre.ee>
Fri, 15 May 2020 06:07:25 +0000 (06:07 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/592>

ext/qt/qtglrenderer.cc

index 5e9f957..365c06b 100644 (file)
@@ -721,7 +721,7 @@ bool GstQuickRenderer::setQmlScene (const gchar * scene, GError ** error)
 
     if (m_errorString != "") {
         g_set_error (error, GST_RESOURCE_ERROR, GST_RESOURCE_ERROR_SETTINGS,
-            m_errorString.toUtf8());
+            "%s", m_errorString.toUtf8());
         return FALSE;
     }