mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 10:40:34 +00:00
glbasesrc: Reverse order of error/debug messages
Addressing follow-up review from Tim in !4222, the first string is meant to be shown to the user and should be translatable. The second one is more suited for debugging purposes and should not be translated. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4389>
This commit is contained in:
parent
da4aa00d5b
commit
4e4cb3bcf5
1 changed files with 6 additions and 5 deletions
|
@ -444,14 +444,14 @@ gl_error:
|
|||
{
|
||||
g_rec_mutex_unlock (&src->priv->context_lock);
|
||||
GST_ELEMENT_ERROR (src, RESOURCE, NOT_FOUND,
|
||||
(_("failed to fill GL memory")), (_("A GL error occurred")));
|
||||
(_("An OpenGL error occurred")), ("failed to fill GL memory"));
|
||||
return GST_FLOW_NOT_NEGOTIATED;
|
||||
}
|
||||
not_negotiated:
|
||||
{
|
||||
g_rec_mutex_unlock (&src->priv->context_lock);
|
||||
GST_ELEMENT_ERROR (src, CORE, NEGOTIATION, (NULL),
|
||||
(_("format wasn't negotiated before get function")));
|
||||
("format wasn't negotiated before get function"));
|
||||
return GST_FLOW_NOT_NEGOTIATED;
|
||||
}
|
||||
eos:
|
||||
|
@ -586,8 +586,9 @@ unsupported_gl_api:
|
|||
gchar *supported_gl_api_str =
|
||||
gst_gl_api_to_string (klass->supported_gl_api);
|
||||
GST_ELEMENT_ERROR (src, RESOURCE, BUSY,
|
||||
("GL API's not compatible context: %s supported: %s", gl_api_str,
|
||||
supported_gl_api_str), (NULL));
|
||||
(_("The GL API is not compatible with the current GL context")),
|
||||
("Current GL API is %s, supported APIs: %s", gl_api_str,
|
||||
supported_gl_api_str));
|
||||
|
||||
g_free (supported_gl_api_str);
|
||||
g_free (gl_api_str);
|
||||
|
@ -610,7 +611,7 @@ context_error:
|
|||
error:
|
||||
{
|
||||
GST_ELEMENT_ERROR (src, LIBRARY, INIT,
|
||||
("Subclass failed to initialize."), (NULL));
|
||||
(_("Subclass failed to initialize.")), (NULL));
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue