mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
qmlglsink: propagate GL context creation failure upwards
Otherwise an application cannot know if the qmlglsink will be displaying frames incorrectly/at all.
This commit is contained in:
parent
f17e58f888
commit
486d3c3b59
1 changed files with 8 additions and 2 deletions
|
@ -414,6 +414,8 @@ QtGLVideoItem::onSceneGraphInvalidated ()
|
||||||
gboolean
|
gboolean
|
||||||
qt_item_init_winsys (QtGLVideoItem * widget)
|
qt_item_init_winsys (QtGLVideoItem * widget)
|
||||||
{
|
{
|
||||||
|
GError *error = NULL;
|
||||||
|
|
||||||
g_return_val_if_fail (widget != NULL, FALSE);
|
g_return_val_if_fail (widget != NULL, FALSE);
|
||||||
|
|
||||||
g_mutex_lock (&widget->priv->lock);
|
g_mutex_lock (&widget->priv->lock);
|
||||||
|
@ -446,8 +448,12 @@ qt_item_init_winsys (QtGLVideoItem * widget)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_gl_context_create (widget->priv->context, widget->priv->other_context,
|
if (!gst_gl_context_create (widget->priv->context, widget->priv->other_context,
|
||||||
NULL);
|
&error)) {
|
||||||
|
GST_ERROR ("%s", error->message);
|
||||||
|
g_mutex_unlock (&widget->priv->lock);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
g_mutex_unlock (&widget->priv->lock);
|
g_mutex_unlock (&widget->priv->lock);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in a new issue