mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
qtglrenderer.cc: Fix compiling
46bfb7d247
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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/593>
This commit is contained in:
parent
46bfb7d247
commit
37c1b1e13f
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue