mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
gldisplay: always unref the context on a collision
Otherwise we will leak GstGLContext's when adding the same context more than
once.
Fixes a regression caused by 5f9d10f603
in the
gstglcontext unit test that failed with:
Assertion 'tmp == NULL' failed
This commit is contained in:
parent
ff3b60a969
commit
e597e45008
1 changed files with 0 additions and 1 deletions
|
@ -558,7 +558,6 @@ gst_gl_display_add_context (GstGLDisplay * display, GstGLContext * context)
|
||||||
if (context == collision) {
|
if (context == collision) {
|
||||||
GST_LOG_OBJECT (display, "Attempting to add the same GL context %"
|
GST_LOG_OBJECT (display, "Attempting to add the same GL context %"
|
||||||
GST_PTR_FORMAT ". Ignoring", context);
|
GST_PTR_FORMAT ". Ignoring", context);
|
||||||
collision = NULL;
|
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue