mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
eglglessink: Cosmetics
This commit is contained in:
parent
c255aa5dd4
commit
f28f5df29e
1 changed files with 4 additions and 2 deletions
|
@ -1446,7 +1446,8 @@ detach_context (void *data)
|
||||||
{
|
{
|
||||||
GstEglGlesSink * eglglessink = data;
|
GstEglGlesSink * eglglessink = data;
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (eglglessink, "Detaching current context from streaming thread");
|
GST_DEBUG_OBJECT (eglglessink,
|
||||||
|
"Detaching current context from streaming thread");
|
||||||
gst_eglglessink_context_make_current (eglglessink, FALSE, TRUE);
|
gst_eglglessink_context_make_current (eglglessink, FALSE, TRUE);
|
||||||
gst_object_unref (eglglessink);
|
gst_object_unref (eglglessink);
|
||||||
}
|
}
|
||||||
|
@ -1456,7 +1457,8 @@ gst_eglglessink_context_make_current (GstEglGlesSink * eglglessink, gboolean bin
|
||||||
{
|
{
|
||||||
g_assert (eglglessink->eglglesctx->display != NULL);
|
g_assert (eglglessink->eglglesctx->display != NULL);
|
||||||
|
|
||||||
if (bind && eglglessink->eglglesctx->surface && eglglessink->eglglesctx->eglcontext) {
|
if (bind && eglglessink->eglglesctx->surface &&
|
||||||
|
eglglessink->eglglesctx->eglcontext) {
|
||||||
if (streaming_thread) {
|
if (streaming_thread) {
|
||||||
EGLContext *ctx = eglGetCurrentContext ();
|
EGLContext *ctx = eglGetCurrentContext ();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue