From 37c1b1e13f05c39b383b3372c25f71806e98fa88 Mon Sep 17 00:00:00 2001 From: Raul Tambre Date: Fri, 15 May 2020 19:20:45 +0300 Subject: [PATCH] qtglrenderer.cc: Fix compiling 46bfb7d247aef880c15300dad63eb2bbf6dc4928 fixed a format warning without checking if it actually compiled. toUtf8() returns QByteArray so we need to assign it to a temporary variable to be able to get the raw string data from it. Part-of: --- ext/qt/qtglrenderer.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ext/qt/qtglrenderer.cc b/ext/qt/qtglrenderer.cc index 365c06b1ad..ddd8acf37f 100644 --- a/ext/qt/qtglrenderer.cc +++ b/ext/qt/qtglrenderer.cc @@ -628,7 +628,7 @@ void GstQuickRenderer::initializeGstGL () * 2. QAnimationDriver controls the 'animation time' that the Qml scene is * rendered at */ - /* FIXME: what happens with multiple qmlgloverlay elements? Do we need a + /* FIXME: what happens with multiple qmlgloverlay elements? Do we need a * shared animation driver? */ g_mutex_lock (&m_sharedRenderData->lock); if (m_sharedRenderData->m_animationDriver == nullptr) { @@ -720,8 +720,9 @@ bool GstQuickRenderer::setQmlScene (const gchar * scene, GError ** error) initializeQml(); if (m_errorString != "") { + QByteArray string = m_errorString.toUtf8(); g_set_error (error, GST_RESOURCE_ERROR, GST_RESOURCE_ERROR_SETTINGS, - "%s", m_errorString.toUtf8()); + "%s", string.constData()); return FALSE; }