From 7287564f2053e87f9dc1bbf303d98118f5443c3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wang=20Xin-yu=20=28=E7=8E=8B=E6=98=95=E5=AE=87=29?= Date: Thu, 21 Jan 2016 16:10:48 +0800 Subject: [PATCH] glvideomixer: fix checker vbo leak https://bugzilla.gnome.org/show_bug.cgi?id=760925 --- ext/gl/gstglvideomixer.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ext/gl/gstglvideomixer.c b/ext/gl/gstglvideomixer.c index da295252bc..273d067391 100644 --- a/ext/gl/gstglvideomixer.c +++ b/ext/gl/gstglvideomixer.c @@ -1081,6 +1081,11 @@ _reset_gl (GstGLContext * context, GstGLVideoMixer * video_mixer) video_mixer->vbo_indices = 0; } + if (video_mixer->checker_vbo) { + gl->DeleteBuffers (1, &video_mixer->checker_vbo); + video_mixer->checker_vbo = 0; + } + gst_aggregator_iterate_sinkpads (GST_AGGREGATOR (video_mixer), _reset_pad_gl, NULL); }