From 0fe052db61c21f781188e1335511b46f06671d88 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Wed, 6 May 2020 09:26:35 +0200 Subject: [PATCH] gldisplay: Fix list iteration We were never moving past the first entry it seems... CID #1461275 Part-of: --- gst-libs/gst/gl/gstgldisplay.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/gl/gstgldisplay.c b/gst-libs/gst/gl/gstgldisplay.c index a5210a4ab8..ec9e45ebcf 100644 --- a/gst-libs/gst/gl/gstgldisplay.c +++ b/gst-libs/gst/gl/gstgldisplay.c @@ -911,9 +911,11 @@ gst_gl_display_remove_context (GstGLDisplay * display, GstGLContext * needle) GST_INFO_OBJECT (display, "removed context %" GST_PTR_FORMAT " from internal list", context); return; - } else - continue; + } + continue; } + prev = l; + l = l->next; } GST_WARNING_OBJECT (display, "%" GST_PTR_FORMAT " was not found in this "